Skip to content

Commit

Permalink
iOS: Resolve a build warning for 32bit devices (#19416)
Browse files Browse the repository at this point in the history
Summary:
<!--
  Required: Write your motivation here.
  If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
-->

This PR resolves a warning `Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')` when building not only this library **but also apps** for 32bit devices since it's declared in public header file.
Pull Request resolved: #19416

Differential Revision: D14206633

Pulled By: cpojer

fbshipit-source-id: a65a4774235fa7fb24fac2f9bf7e51ba2a027377
  • Loading branch information
chuganzy authored and facebook-github-bot committed Feb 25, 2019
1 parent 7a7eb11 commit b664dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#import <React/RCTBridgeModule.h>

static CGFloat RCTSingleFrameInterval = 1.0 / 60.0;
static CGFloat RCTSingleFrameInterval = (CGFloat)(1.0 / 60.0);

@class RCTValueAnimatedNode;

Expand Down

0 comments on commit b664dfd

Please sign in to comment.