diff options
author | Patrik Nyblom <[email protected]> | 2011-11-10 17:52:39 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2011-11-16 17:07:37 +0100 |
commit | b764d3fe3446a5744fc0441ba4ecf5ac169612e7 (patch) | |
tree | 6d1fb3f7330feaa8a271578d0a7d913555c92146 /erts/emulator | |
parent | 8e8fa01525dabf757009054798569aba115d2952 (diff) | |
download | otp-b764d3fe3446a5744fc0441ba4ecf5ac169612e7.tar.gz otp-b764d3fe3446a5744fc0441ba4ecf5ac169612e7.tar.bz2 otp-b764d3fe3446a5744fc0441ba4ecf5ac169612e7.zip |
Make binary:match with scope return correct values
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/beam/erl_bif_binary.c | 2 |
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); |