Skip to content

Commit

Permalink
Address static_cast comment properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple committed Dec 8, 2022
1 parent ef8ff9c commit 926bbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ - (void)_handleSubscriptionReset

MTR_LOG_INFO("%@ scheduling to reattempt subscription in %u seconds", self, _lastSubscriptionAttemptWait);
dispatch_after(
dispatch_time(DISPATCH_TIME_NOW, static_cast<int64_t>(_lastSubscriptionAttemptWait * NSEC_PER_SEC)), self.queue, ^{
dispatch_time(DISPATCH_TIME_NOW, static_cast<int64_t>(_lastSubscriptionAttemptWait) * NSEC_PER_SEC), self.queue, ^{
os_unfair_lock_lock(&self->_lock);
MTR_LOG_INFO("%@ reattempting subscription", self);
self.reattemptingSubscription = NO;
Expand Down

0 comments on commit 926bbae

Please sign in to comment.