aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/big.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-02-23 21:05:03 +0100
committerSverker Eriksson <[email protected]>2016-02-24 17:04:01 +0100
commit1b094d72ffc56069c72f17c7edd673dbbfe47e39 (patch)
tree45675d9bc82b8496765bee32831de2501471ebae /erts/emulator/beam/big.h
parent56090db3ea417157a749bdd810fc61d117493f1f (diff)
downloadotp-1b094d72ffc56069c72f17c7edd673dbbfe47e39.tar.gz
otp-1b094d72ffc56069c72f17c7edd673dbbfe47e39.tar.bz2
otp-1b094d72ffc56069c72f17c7edd673dbbfe47e39.zip
erts: Make erlang:halt() accept bignums as Status
Just mask away the high bits to get a more tolerant erlang:halt that behaves the same on 32 and 64 bit architectures.
Diffstat (limited to 'erts/emulator/beam/big.h')
-rw-r--r--erts/emulator/beam/big.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/big.h b/erts/emulator/beam/big.h
index 4aa9724ae3..3c1f1e6b23 100644
--- a/erts/emulator/beam/big.h
+++ b/erts/emulator/beam/big.h
@@ -161,6 +161,7 @@ Eterm bytes_to_big(byte*, dsize_t, int, Eterm*);
byte* big_to_bytes(Eterm, byte*);
int term_to_Uint(Eterm, Uint*);
+int term_to_Uint_mask(Eterm, Uint*);
int term_to_UWord(Eterm, UWord*);
int term_to_Sint(Eterm, Sint*);
#if HAVE_INT64