Chromium Code Reviews
DescriptionAvoid overflow when checking if a transform is integer translation.
If the floating point number in the matrix can not be represented as
an integer then we should return false so that the calling code does
not try to cast it as one.
For large enough integers this may return an incorrect result still, as
it may return true if the floating point representation has a
fractional part if that floating point representation also is used for
an integer converted to float. But at that point we can not tell which
would be closer to the original intent - using the integer-casted
number or the floating point one, so we leave the result as before.
R=ajuma@chromium.org
BUG=675435
Committed: https://crrev.com/602038a90b8b56b4a96a619962f41f03d42b3c46
Cr-Commit-Position: refs/heads/master@{#439584}
Patch Set 1 #
Total comments: 2
Patch Set 2 : integer-transform #
Messages
Total messages: 15 (7 generated)
|
|||||||||||||||||||||||||||||||||||||