mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 22:20:41 +00:00
[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:
parent
ca8fcdfe49
commit
1adfb005ca
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user