Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid overflow during conversion from ms to ticks.
E.g. when having predivSync=255, a value of subSeconds=2^24 (still well below UINT32_MAX and thus using the 32bit computation branch) would be multiplied by 256 and result in an overflow during computation. In fact, 2^24 ms is about 4 hours 40 minutes.
- Loading branch information