]> git.openstreetmap.org Git - rails.git/commitdiff
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)
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.


No differences found