[Webkit-unassigned] [Bug 68166] unsigned bit shift fails under certain conditions - REPRODUCIBLE
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 15 23:06:04 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=68166
--- Comment #2 from Gavin Barraclough <barraclough at apple.com> 2011-09-15 23:06:04 PST ---
(-1698987653.3475556 >>> 0) % 256
I believe evaluates as:
((uint32_t)(int32_t)-1698987653.3475556) % 256
((uint32_t)-1698987653) % 256
0x9ABB817Bu % 256
0x7Bu
123
So as Alexey says, 123 is the correct result.
Are you sure you were seeing -2 or 254 from this test case?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list