Fix test build by casting test image identifiers

This commit is contained in:
Adlai Holler
2015-10-28 21:18:13 -07:00
parent 0e90d0556f
commit f2a095a459

View File

@@ -278,7 +278,7 @@ static BOOL ASRunRunLoopUntilBlockIsTrue(BOOL (^block)())
return;
// Bail if it's trying to load an identifier that's more than one step than what's loaded.
NSInteger nextImageIdentifier = [imageNode.loadedImageIdentifier integerValue] + 1;
NSInteger nextImageIdentifier = [(NSNumber *)imageNode.loadedImageIdentifier integerValue] + 1;
if (requestedIdentifierValue != nextImageIdentifier)
return;
@@ -344,7 +344,7 @@ static BOOL ASRunRunLoopUntilBlockIsTrue(BOOL (^block)())
// Wait until the image is loaded.
ASRunRunLoopUntilBlockIsTrue(^BOOL{
return [imageNode.loadedImageIdentifier isEqual:imageIdentifier];
return [(id)imageNode.loadedImageIdentifier isEqual:imageIdentifier];
});
// Verify the delegation.