Skip to content

Commit 1adfb00

Browse files
committed
[Build] Tiny fix to cast intValue to the enume type we're using it as (strict compiler settings can fail without the cast).
1 parent ca8fcdf commit 1adfb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncDisplayKit/Private/ASDefaultPlaybackButton.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ - (void)setButtonType:(ASDefaultPlaybackButtonType)buttonType
5151

5252
+ (void)drawRect:(CGRect)bounds withParameters:(id<NSObject>)parameters isCancelled:(asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing
5353
{
54-
ASDefaultPlaybackButtonType buttonType = [parameters[@"buttonType"] intValue];
54+
ASDefaultPlaybackButtonType buttonType = (ASDefaultPlaybackButtonType)[parameters[@"buttonType"] intValue];
5555
UIColor *color = parameters[@"color"];
5656

5757
CGContextRef context = UIGraphicsGetCurrentContext();

0 commit comments

Comments
 (0)