]> git.openstreetmap.org Git - rails.git/commit
Avoid integer overflow when computing shortcodes
authorMatt Amos <zerebubuth@gmail.com>
Sun, 5 Dec 2010 11:00:57 +0000 (11:00 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Dec 2010 11:00:57 +0000 (11:00 +0000)
commit42ef10ba80bf7ff13b4f9210e5fbf54538e0d52f
tree8f7f43f30dc8c411bc0acbcabc60ccc35cb4e312
parent616e9ce7b920ca5b1834f036099c89626d8aca9f
Avoid integer overflow when computing shortcodes

Although javascript's numbers are double precision floating point
number which support 52 bits of precision the bitwise operations are
only guaranteed to work at 32 bits of precision so we need to avoid
relying on them doing more than that.
public/javascripts/site.js