aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2011-11-10 17:52:39 +0100
committerPatrik Nyblom <[email protected]>2011-11-16 17:07:37 +0100
commitb764d3fe3446a5744fc0441ba4ecf5ac169612e7 (patch)
tree6d1fb3f7330feaa8a271578d0a7d913555c92146 /erts
parent8e8fa01525dabf757009054798569aba115d2952 (diff)
downloadotp-b764d3fe3446a5744fc0441ba4ecf5ac169612e7.tar.gz
otp-b764d3fe3446a5744fc0441ba4ecf5ac169612e7.tar.bz2
otp-b764d3fe3446a5744fc0441ba4ecf5ac169612e7.zip
Make binary:match with scope return correct values
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_bif_binary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_binary.c b/erts/emulator/beam/erl_bif_binary.c
index 6d022e0d11..8df06193f7 100644
--- a/erts/emulator/beam/erl_bif_binary.c
+++ b/erts/emulator/beam/erl_bif_binary.c
@@ -1152,7 +1152,7 @@ static int do_binary_match(Process *p, Eterm subject, Uint hsstart, Uint hsend,
erts_free_aligned_binary_bytes(temp_alloc);
return DO_BIN_MATCH_RESTART;
} else {
- Eterm epos = erts_make_integer(pos+hsstart,p);
+ Eterm epos = erts_make_integer(pos,p);
Eterm erlen = erts_make_integer(rlen,p);
hp = HAlloc(p,3);
ret = TUPLE2(hp, epos, erlen);