These operations are done in 32-bit arithmetics before being casted to 64-bit, thus can overflow before the cast. Casting early fixes the issue. Found through static analysismaster
parent
63eb720871
commit
f0d455f088
Loading…
Reference in new issue