aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/nif_SUITE_data
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-01-17 12:32:42 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-01-29 11:08:47 +0100
commitf2b9a5623ec5c9a314560add82ef20a03ba91235 (patch)
tree33f6d94566fe466305585f990b555f073cbdebe1 /erts/emulator/test/nif_SUITE_data
parent9eddc8eb4c7f4ef45b51650750334a787c5f9ef7 (diff)
downloadotp-f2b9a5623ec5c9a314560add82ef20a03ba91235.tar.gz
otp-f2b9a5623ec5c9a314560add82ef20a03ba91235.tar.bz2
otp-f2b9a5623ec5c9a314560add82ef20a03ba91235.zip
erts: Change 'size' argument of enif_get_map_size from int* to size_t*
Diffstat (limited to 'erts/emulator/test/nif_SUITE_data')
-rw-r--r--erts/emulator/test/nif_SUITE_data/nif_SUITE.c4
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 9ee89a49a4..b550d1f16d 100644
--- a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c
+++ b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c
@@ -1542,9 +1542,9 @@ static ERL_NIF_TERM is_map_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv
}
static ERL_NIF_TERM get_map_size_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
- int size = -123;
+ size_t size = (size_t)-123;
int ret = enif_get_map_size(env, argv[0], &size);
- return enif_make_tuple2(env, enif_make_int(env, ret), enif_make_int(env, size));
+ return enif_make_tuple2(env, enif_make_int(env, ret), enif_make_int(env, (int)size));
}
static ERL_NIF_TERM make_new_map_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{