mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
add casts for implicit int to float
Summary: Apply //fbobjc/Tools/cAST:implicit_conversion to existing warnings Reviewed By: matrush Differential Revision: D35787050 fbshipit-source-id: 45f06227e44203cbedf1d10978e1992399a0d06b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c6daadcab4
commit
f22d4348dc
@@ -101,7 +101,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)aDecoder)
|
||||
for (NSUInteger i = 0; i < _length - 1; i++) {
|
||||
_frames[i] = _frames[i + 1];
|
||||
}
|
||||
_frames[_length - 1] = _FPS / scale;
|
||||
_frames[_length - 1] = (double)_FPS / scale;
|
||||
|
||||
CGMutablePathRef path = CGPathCreateMutable();
|
||||
CGPathMoveToPoint(path, NULL, 0, (CGFloat)_height);
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
accessibilityIdentifier:@""
|
||||
selector:nil
|
||||
block:customButtonHandlers[i]];
|
||||
button.frame = CGRectMake(buttonWidth * (4 + i), bottomButtonHeight, buttonWidth, buttonHeight);
|
||||
button.frame = CGRectMake(buttonWidth * (double)(4 + i), bottomButtonHeight, buttonWidth, buttonHeight);
|
||||
[rootView addSubview:button];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user