diff options
author | Björn Gustavsson <[email protected]> | 2017-09-08 05:18:33 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-09-14 10:16:15 +0200 |
commit | be8fb5a57d1a30c203e79ae2baf9e541226020d8 (patch) | |
tree | 39f87f6a49efc656334553396a60be237a84537b /erts/emulator | |
parent | df1f7395a206d1fd4e70b7380fccdbd53540db40 (diff) | |
download | otp-be8fb5a57d1a30c203e79ae2baf9e541226020d8.tar.gz otp-be8fb5a57d1a30c203e79ae2baf9e541226020d8.tar.bz2 otp-be8fb5a57d1a30c203e79ae2baf9e541226020d8.zip |
Make sure that mask literals are 64 bits
Use the "ull" suffix for the mask literals instead of "ul"
to ensure that the literals are 64 bits also on Windows.
Diffstat (limited to 'erts/emulator')
-rwxr-xr-x | erts/emulator/utils/beam_makeops | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops index ccbd0dbaf4..6248583b1c 100755 --- a/erts/emulator/utils/beam_makeops +++ b/erts/emulator/utils/beam_makeops @@ -708,9 +708,9 @@ sub emulator_output { print "#if !defined(ARCH_64)\n"; print qq[ #error "64-bit architecture assumed, but ARCH_64 not defined"\n]; print "#endif\n"; - print "#define BEAM_WIDE_MASK 0xFFFFFFFFUL\n"; - print "#define BEAM_LOOSE_MASK 0xFFFFUL\n"; - print "#define BEAM_TIGHT_MASK 0xFFFFUL\n"; + print "#define BEAM_WIDE_MASK 0xFFFFFFFFull\n"; + print "#define BEAM_LOOSE_MASK 0xFFFFull\n"; + print "#define BEAM_TIGHT_MASK 0xFFFFull\n"; print "#define BEAM_WIDE_SHIFT 32\n"; print "#define BEAM_LOOSE_SHIFT 16\n"; print "#define BEAM_TIGHT_SHIFT 16\n"; |