[Build] Tiny fix to cast intValue to the enume type we're using it as (strict compiler settings can fail without the cast).

This commit is contained in:
Scott Goodson 2017-02-08 20:29:45 -08:00
parent ca8fcdfe49
commit 1adfb005ca

View File

@ -51,7 +51,7 @@
+ (void)drawRect:(CGRect)bounds withParameters:(id<NSObject>)parameters isCancelled:(asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing
{
ASDefaultPlaybackButtonType buttonType = [parameters[@"buttonType"] intValue];
ASDefaultPlaybackButtonType buttonType = (ASDefaultPlaybackButtonType)[parameters[@"buttonType"] intValue];
UIColor *color = parameters[@"color"];
CGContextRef context = UIGraphicsGetCurrentContext();