diff options
author | Sverker Eriksson <[email protected]> | 2015-11-12 15:31:29 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-11-12 15:31:29 +0100 |
commit | 16293b64dee1357b36926fc62ab59bca5cfdef0b (patch) | |
tree | 6df55ac738e0927ab5c47d9c03c19d4c736bae1e | |
parent | 74a95b3d511177a9b35c2b0272b9ca5511b6f750 (diff) | |
download | otp-16293b64dee1357b36926fc62ab59bca5cfdef0b.tar.gz otp-16293b64dee1357b36926fc62ab59bca5cfdef0b.tar.bz2 otp-16293b64dee1357b36926fc62ab59bca5cfdef0b.zip |
erts: Fix nif_SUITE for win64
where type long is only 32-bit and can not hold a pointer
unless your lucky.
-rw-r--r-- | erts/emulator/test/nif_SUITE_data/nif_mod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/test/nif_SUITE_data/nif_mod.c b/erts/emulator/test/nif_SUITE_data/nif_mod.c index 9c78c0e04d..f7e729e2b6 100644 --- a/erts/emulator/test/nif_SUITE_data/nif_mod.c +++ b/erts/emulator/test/nif_SUITE_data/nif_mod.c @@ -240,7 +240,7 @@ static ERL_NIF_TERM lib_version(ErlNifEnv* env, int argc, const ERL_NIF_TERM arg static ERL_NIF_TERM get_priv_data_ptr(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { ADD_CALL("get_priv_data_ptr"); - return enif_make_ulong(env, (unsigned long)priv_data(env)); + return enif_make_uint64(env, (ErlNifUInt64)priv_data(env)); } static ERL_NIF_TERM make_new_resource(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) |