aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process_dict.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-03-20 17:31:45 +0100
committerRickard Green <[email protected]>2017-03-20 17:31:45 +0100
commit92616102d59ae7c51c39176b264b84b32cc21f14 (patch)
tree572e33f3f3e9e9ab918a45b3dbf5f9c22580cf89 /erts/emulator/beam/erl_process_dict.c
parent748c2d938d309940b8365ed4f6af863b8129c5bf (diff)
downloadotp-92616102d59ae7c51c39176b264b84b32cc21f14.tar.gz
otp-92616102d59ae7c51c39176b264b84b32cc21f14.tar.bz2
otp-92616102d59ae7c51c39176b264b84b32cc21f14.zip
Fix type of MAKE_HASH
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.c')
-rw-r--r--erts/emulator/beam/erl_process_dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process_dict.c b/erts/emulator/beam/erl_process_dict.c
index 8311fde025..7cfdf20341 100644
--- a/erts/emulator/beam/erl_process_dict.c
+++ b/erts/emulator/beam/erl_process_dict.c
@@ -54,9 +54,9 @@
#define HASH_RANGE(PDict) ((PDict)->usedSlots)
#define MAKE_HASH(Term) \
- ((is_small(Term)) ? unsigned_val(Term) : \
+ ((is_small(Term)) ? (Uint32) unsigned_val(Term) : \
((is_atom(Term)) ? \
- atom_val(Term) : \
+ (Uint32) atom_val(Term) : \
make_internal_hash(Term)))
#define PD_SZ2BYTES(Sz) (sizeof(ProcDict) + ((Sz) - 1)*sizeof(Eterm))