Skip to content

Commit aaa8f4b

Browse files
authored
Merge pull request #336 from firebase/auth-xcode9-fix
Fixes incorrect usage of integer operator on floating point operands.
2 parents 64399c7 + 70e18e8 commit aaa8f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebasePhoneAuthUI/FUIPhoneVerificationViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ - (void)resendConfirmationCodeTimerFinished {
265265

266266
- (void)updateResendLabel {
267267
NSInteger minutes = _resendConfirmationCodeSeconds / 60; // Integer type for truncation
268-
NSInteger seconds = round(_resendConfirmationCodeSeconds % 60);
268+
NSInteger seconds = (NSInteger)round(_resendConfirmationCodeSeconds) % 60;
269269
NSString *formattedTime = [NSString stringWithFormat:@"%ld:%02ld", minutes, seconds];
270270

271271
_resendConfirmationCodeTimerLabel.text =

0 commit comments

Comments
 (0)