diff options
author | Sverker Eriksson <[email protected]> | 2015-03-02 20:54:42 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:15:30 +0100 |
commit | 18eabd06e64d21f83f466e99de35302b238ffec7 (patch) | |
tree | 02944f2b91238f1c65e10b9907d738522e1af7c8 /erts/emulator/beam/utils.c | |
parent | 861a865cea33e0f8d84148dfbd64ab00beb1a54a (diff) | |
download | otp-18eabd06e64d21f83f466e99de35302b238ffec7.tar.gz otp-18eabd06e64d21f83f466e99de35302b238ffec7.tar.bz2 otp-18eabd06e64d21f83f466e99de35302b238ffec7.zip |
erts: Fix compare order of hamt vs other types
MAP_DEF and HASHMAP_DEF must have adjacent values
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r-- | erts/emulator/beam/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c index 67331a37f6..3b35750fd7 100644 --- a/erts/emulator/beam/utils.c +++ b/erts/emulator/beam/utils.c @@ -830,10 +830,10 @@ Uint32 make_hash(Eterm term_arg) unsigned op; /* Must not collide with the real tag_val_def's: */ -#define MAKE_HASH_TUPLE_OP 0x11 -#define MAKE_HASH_TERM_ARRAY_OP 0x12 -#define MAKE_HASH_CDR_PRE_OP 0x13 -#define MAKE_HASH_CDR_POST_OP 0x14 +#define MAKE_HASH_TUPLE_OP (FIRST_VACANT_TAG_DEF) +#define MAKE_HASH_TERM_ARRAY_OP (FIRST_VACANT_TAG_DEF+1) +#define MAKE_HASH_CDR_PRE_OP (FIRST_VACANT_TAG_DEF+2) +#define MAKE_HASH_CDR_POST_OP (FIRST_VACANT_TAG_DEF+3) /* ** Convenience macro for calculating a bytewise hash on an unsigned 32 bit |