diff options
author | Guilherme Andrade <[email protected]> | 2017-04-22 17:22:32 +0100 |
---|---|---|
committer | Guilherme Andrade <[email protected]> | 2017-04-22 17:25:13 +0100 |
commit | 21e1d879faaae2278a68200fe1085d7e73791fa0 (patch) | |
tree | c711ec5ac1659532787af3c0f44b764426fc88e5 /erts/emulator/beam/erl_map.h | |
parent | d8756f8665a42effa2f3515369058cff4441abeb (diff) | |
download | otp-21e1d879faaae2278a68200fe1085d7e73791fa0.tar.gz otp-21e1d879faaae2278a68200fe1085d7e73791fa0.tar.bz2 otp-21e1d879faaae2278a68200fe1085d7e73791fa0.zip |
erts: Support custom salt in enif_hash
Diffstat (limited to 'erts/emulator/beam/erl_map.h')
-rw-r--r-- | erts/emulator/beam/erl_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_map.h b/erts/emulator/beam/erl_map.h index 61a841f7f0..f7d0413685 100644 --- a/erts/emulator/beam/erl_map.h +++ b/erts/emulator/beam/erl_map.h @@ -57,7 +57,7 @@ typedef struct flatmap_s { #define hashmap_size(x) (((hashmap_head_t*) hashmap_val(x))->size) -#define hashmap_make_hash(Key) make_internal_hash(Key) +#define hashmap_make_hash(Key) make_internal_hash(Key, 0) #define hashmap_restore_hash(Heap,Lvl,Key) \ (((Lvl) < 8) ? hashmap_make_hash(Key) >> (4*(Lvl)) : hashmap_make_hash(CONS(Heap, make_small((Lvl)>>3), (Key))) >> (4*((Lvl) & 7))) |