diff options
author | Sverker Eriksson <[email protected]> | 2015-05-27 17:53:59 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-05-27 17:53:59 +0200 |
commit | 951b8c9076cc9a5283483633052587984274b8aa (patch) | |
tree | 8b9600004ff4e380347fa17888a82b2a674fb27f /erts/emulator/test/nif_SUITE_data | |
parent | 50cdb87765cd46e0a809d97f62df28baf8a2c16a (diff) | |
download | otp-951b8c9076cc9a5283483633052587984274b8aa.tar.gz otp-951b8c9076cc9a5283483633052587984274b8aa.tar.bz2 otp-951b8c9076cc9a5283483633052587984274b8aa.zip |
erts: Rename ErlNifMapIteratorEntry enums
To differentiate between first/last map entry
and head/tail which is before/after first/last map entry.
Diffstat (limited to 'erts/emulator/test/nif_SUITE_data')
-rw-r--r-- | erts/emulator/test/nif_SUITE_data/nif_SUITE.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c index 3cc9f51ef8..d964ae338e 100644 --- a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c +++ b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c @@ -1802,7 +1802,7 @@ static ERL_NIF_TERM sorted_list_from_maps_nif(ErlNifEnv* env, int argc, const ER if (argc != 1 && !enif_is_map(env, map)) return enif_make_int(env, __LINE__); - if(!enif_map_iterator_create(env, map, &iter_f, ERL_NIF_MAP_ITERATOR_HEAD)) + if(!enif_map_iterator_create(env, map, &iter_f, ERL_NIF_MAP_ITERATOR_FIRST)) return enif_make_int(env, __LINE__); cnt = 0; @@ -1817,7 +1817,7 @@ static ERL_NIF_TERM sorted_list_from_maps_nif(ErlNifEnv* env, int argc, const ER if (cnt && next_ret) return enif_make_int(env, __LINE__); - if(!enif_map_iterator_create(env, map, &iter_b, ERL_NIF_MAP_ITERATOR_TAIL)) + if(!enif_map_iterator_create(env, map, &iter_b, ERL_NIF_MAP_ITERATOR_LAST)) return enif_make_int(env, __LINE__); cnt = 0; |