Skip to content

Commit 70e18e8

Browse files
committed
Fixes incorrect usage of integer operator on floating point operands.
1 parent 64399c7 commit 70e18e8

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)