-
Committer:
Jonathan Kew
-
Date:
2019-09-11 12:07:46 UTC
-
Revision ID:
git-v1:d60b0af5e32fed034bd163d244148947d3ed91a8
Avoid undefined behavior (left-shifting negative value) in pixman_int_to_fixed
Reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1580352. Casting the argument to uint32_t should avoid invoking undefined behavior here. We'll still have *implementation-defined* behavior when casting the result back to pixman_fixed_t, but that's better than *undefined*.