aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-03-18 15:40:31 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-18 15:40:31 +0100
commit9b12c29ec079fca783eac10b5196ae55b58885d7 (patch)
treee6690a74fa453b99f26f17c3c1c8a669dddd39cc /erts/emulator
parent3db6d3f160c16abdf0ddb77e715761b155e97ad1 (diff)
parent7e045b2c7e545d5640e74280b2e7f75761961c39 (diff)
downloadotp-9b12c29ec079fca783eac10b5196ae55b58885d7.tar.gz
otp-9b12c29ec079fca783eac10b5196ae55b58885d7.tar.bz2
otp-9b12c29ec079fca783eac10b5196ae55b58885d7.zip
Merge branch 'egil/fix-beam_load-assert'
* egil/fix-beam_load-assert: erts: Fix beam_load assert
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/beam_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index fce710f723..02689e5b19 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -3727,7 +3727,7 @@ gen_select_val(LoaderState* stp, GenOpArg S, GenOpArg Fail,
op->a[j+size] = Fail;
#ifdef DEBUG
- for (i = 0; i < size; i++) {
+ for (i = 0; i < size - 1; i++) {
ASSERT(op->a[i+3].val <= op->a[i+4].val);
}
#endif