[Webkit-unassigned] [Bug 40355] Exception loading Google Wave in Safari 5
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 11 08:56:44 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40355
--- Comment #6 from Steve Dunham <dunhamsteve at gmail.com> 2010-06-11 08:56:41 PST ---
Further reduced test case:
function test() {
var off = -0;
var tmp = 5 + off;
var tmp2 = (tmp >> 1);
tmp = tmp >> 1;
if (tmp != tmp2)
document.getElementById("result").innerHTML = "fail "+tmp+" != "+tmp2;
else
document.getElementById("result").innerHTML = "pass";
}
Gives:
fail 5.000000000000002 != 2
It looks like adding "-0" to an integer results in a value that will right shift correctly in some contexts but not in others. (Note that tmp2 holds the correct value, but tmp does not.)
--
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