diff options
author | Erlang/OTP <otp@erlang.org> | 2021-11-11 16:32:54 +0100 |
---|---|---|
committer | Erlang/OTP <otp@erlang.org> | 2021-11-11 16:32:54 +0100 |
commit | a2c2033df2c7ecd39b9dd8b7f152f9566f731038 (patch) | |
tree | 23e31ddd8292cd5f98c89dd28e2c71c101012455 | |
parent | c5004ddeacdb2813f00c5325ae6d5f9c88a273d5 (diff) | |
parent | db8a55942825ded9c6a7d6a6ed4af10709449100 (diff) | |
download | erlang-a2c2033df2c7ecd39b9dd8b7f152f9566f731038.tar.gz |
Merge branch 'lukas/testcase-fixes' into maint-22
* lukas/testcase-fixes:
erts: Do not put invalid term on heap
-rw-r--r-- | erts/emulator/test/nif_SUITE_data/nif_SUITE.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c index f3cab31f33..61af12dd7b 100644 --- a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c +++ b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c @@ -2074,7 +2074,7 @@ static ERL_NIF_TERM call_nif_nan_or_inf(ErlNifEnv* env, int argc, const ERL_NIF_ assert(enif_is_exception(env, res)); assert(enif_has_pending_exception(env, NULL)); if (strcmp(arg, "tuple") == 0) { - return enif_make_tuple2(env, argv[0], res); + return enif_make_tuple2(env, argv[0], argv[0]); } else { return res; } |