This is mostly just a sanity-check.
Mozilla says that
The operands of all bitwise operators are converted to signed 32-bit integers in two's complement format.
and that
The numbers -2147483648 and 2147483647 are the minimum and the maximum integers representable through a 32bit signed number.
Since 2147483647 is 0x7FFFFFFF, I believe that 0x40000000 (that is to say, not 0x80000000) is the maximum number I can safely use as a javascript flag value. But I'd like to make sure I haven't missed something or that there aren't other gotchas. Thank you in advance!