aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-02-09 22:04:57 +0100
committerLukas Larsson <[email protected]>2016-04-15 15:07:09 +0200
commitd15ddcb9d407462133ec5d84c45353bd5a928167 (patch)
treebcece6e6839b363976ddc9cb00b64641ed8eaa7c /erts/emulator/beam/beam_emu.c
parent6cb6b59cd4cd5bd4383053e12ae8ab192711c827 (diff)
downloadotp-d15ddcb9d407462133ec5d84c45353bd5a928167.tar.gz
otp-d15ddcb9d407462133ec5d84c45353bd5a928167.tar.bz2
otp-d15ddcb9d407462133ec5d84c45353bd5a928167.zip
erts: Fix FPE bug in erl_nif
erts_block/unblock_fpe should only be called at entry to/exit from native user code.
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index c356863b60..7cb259cb8a 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -3460,7 +3460,7 @@ do { \
typedef Eterm NifF(struct enif_environment_t*, int argc, Eterm argv[]);
NifF* fp = vbf = (NifF*) I[1];
struct enif_environment_t env;
- erts_pre_nif(&env, c_p, (struct erl_module_nif*)I[2]);
+ erts_pre_nif(&env, c_p, (struct erl_module_nif*)I[2], NULL);
live_hf_end = c_p->mbuf;
nif_bif_result = (*fp)(&env, bif_nif_arity, reg);
if (env.exception_thrown)