Skip to content

Commit

Permalink
add casts for implicit int to float
Browse files Browse the repository at this point in the history
Summary: Apply //fbobjc/Tools/cAST:implicit_conversion to existing warnings

Reviewed By: matrush

Differential Revision: D35787050

fbshipit-source-id: 45f06227e44203cbedf1d10978e1992399a0d06b
  • Loading branch information
rmaz authored and facebook-github-bot committed Apr 20, 2022
1 parent c6daadc commit f22d434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion React/CoreModules/RCTFPSGraph.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ - (void)onTick:(NSTimeInterval)timestamp
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);
Expand Down
2 changes: 1 addition & 1 deletion React/CoreModules/RCTRedBox.mm
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ - (instancetype)initWithFrame:(CGRect)frame
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];
}

Expand Down

0 comments on commit f22d434

Please sign in to comment.