diff options
author | Patrik Nyblom <[email protected]> | 2010-10-14 10:01:20 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-11-29 13:59:12 +0100 |
commit | a3ad23a50ef3dbdb8309bd178014d3285d87a78f (patch) | |
tree | d2d3da8654b5b6aeb5089b1d5780b6cf23266c02 /erts/emulator/beam/erl_bif_binary.c | |
parent | 4cf08709189ea8b7e2ae20f85c390abd04ae48ae (diff) | |
download | otp-a3ad23a50ef3dbdb8309bd178014d3285d87a78f.tar.gz otp-a3ad23a50ef3dbdb8309bd178014d3285d87a78f.tar.bz2 otp-a3ad23a50ef3dbdb8309bd178014d3285d87a78f.zip |
Teach binary:matches not to return 'nomatch' on empty input
Diffstat (limited to 'erts/emulator/beam/erl_bif_binary.c')
-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 b6a445c55c..684fa5d12f 100644 --- a/erts/emulator/beam/erl_bif_binary.c +++ b/erts/emulator/beam/erl_bif_binary.c @@ -1477,7 +1477,7 @@ BIF_RETTYPE binary_matches_3(BIF_ALIST_3) goto badarg; } if (hsend == 0) { - BIF_RET(am_nomatch); + BIF_RET(NIL); } if (is_tuple(BIF_ARG_2)) { tp = tuple_val(BIF_ARG_2); |