waneck / testrepo

0 stars 0 forks source link

Issue 1851 - Int32 and Int64 abstracts - haxe #1851

Open waneck opened 11 years ago

waneck commented 11 years ago

[Google Issue #1851 : http://code.google.com/haxe/issues/detail?id=1851] by ncanna...@gmail.com, at 2013-05-24T13:33:11.000Z It was found just before 3.0 final that multiplication between two Int can overflow on JS/PHP/Flash8 because they use doubles, so only have 52 bits precision.

Int64 was fixed accordingly but we might need again an Int32 compatibility class to allow safe multiply on all platforms.

I propose that we add both haxe.Int32 and haxe.Int64 as abstracts in 3.2, that will use either native implementation if available or emulation if not.