aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/bif.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-01-24 17:29:18 +0100
committerRickard Green <[email protected]>2017-02-06 19:54:49 +0100
commit13f02f2bb6e1e3ce709abc9ff846b24331ada58d (patch)
treeedd4163abb26ff5852c4ac08929fb2728ae0520f /erts/emulator/beam/bif.c
parent40d55ced08579e9fc0ade28ba0810bf800690394 (diff)
downloadotp-13f02f2bb6e1e3ce709abc9ff846b24331ada58d.tar.gz
otp-13f02f2bb6e1e3ce709abc9ff846b24331ada58d.tar.bz2
otp-13f02f2bb6e1e3ce709abc9ff846b24331ada58d.zip
Use magic refs for distributed send trap context
Diffstat (limited to 'erts/emulator/beam/bif.c')
-rw-r--r--erts/emulator/beam/bif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index bda7b9224c..2190c47262 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -2446,7 +2446,7 @@ BIF_RETTYPE send_2(BIF_ALIST_2)
static BIF_RETTYPE dsend_continue_trap_1(BIF_ALIST_1)
{
- Binary* bin = ((ProcBin*) binary_val(BIF_ARG_1))->val;
+ Binary* bin = erts_magic_ref2bin(BIF_ARG_1);
ErtsSendContext* ctx = (ErtsSendContext*) ERTS_MAGIC_BIN_DATA(bin);
Sint initial_reds = (Sint) (ERTS_BIF_REDS_LEFT(BIF_P) * TERM_TO_BINARY_LOOP_FACTOR);
int result;