From: Matt Amos Date: Sun, 5 Dec 2010 11:00:57 +0000 (+0000) Subject: Avoid integer overflow when computing shortcodes X-Git-Tag: live~6385^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/42ef10ba80bf7ff13b4f9210e5fbf54538e0d52f?hp=42ef10ba80bf7ff13b4f9210e5fbf54538e0d52f 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. ---