For performance reasons, the Haxe Compiler does not enforce any overflow behavior. The burden of checking for overflows falls to the target platform. Here are some platform-specific notes on overflow behavior:
Alternatively, the haxe.Int32 and haxe.Int64 classes can be used to ensure correct overflow behavior at the cost of additional computations on certain platforms.