SIGN IN SIGN UP

gh-91421: Use constant value check during runtime (GH-91422)

The left-hand side expression of the if-check can be converted to a
constant by the compiler, but the addition on the right-hand side is
performed during runtime.

Move the addition from the right-hand side to the left-hand side by
turning it into a subtraction there. Since the values are known to
be large enough to not turn negative, this is a safe operation.

Prevents a very unlikely integer overflow on 32 bit systems.

Fixes GH-91421.
T
Tobias Stoeckmann committed
0859368335d470b9ff33fc53ed9a85ec2654b278
Parent: ac6c3de
Committed by GitHub <noreply@github.com> on 4/13/2022, 3:01:02 AM