aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/utils
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-09-08 05:18:33 +0200
committerBjörn Gustavsson <[email protected]>2017-09-14 10:16:15 +0200
commitbe8fb5a57d1a30c203e79ae2baf9e541226020d8 (patch)
tree39f87f6a49efc656334553396a60be237a84537b /erts/emulator/utils
parentdf1f7395a206d1fd4e70b7380fccdbd53540db40 (diff)
downloadotp-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/utils')
-rwxr-xr-xerts/emulator/utils/beam_makeops6
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";