aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-03-12 18:39:54 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:21:30 +0100
commit2dae04b0c73f5fc855d4cfb2e6231bf65e51ebce (patch)
tree473311ade21fc2363cbc37f0e0a51f41d289b20a
parenta09f11fb0db7f40015f85146691286e1ac735733 (diff)
downloadotp-2dae04b0c73f5fc855d4cfb2e6231bf65e51ebce.tar.gz
otp-2dae04b0c73f5fc855d4cfb2e6231bf65e51ebce.tar.bz2
otp-2dae04b0c73f5fc855d4cfb2e6231bf65e51ebce.zip
Fix beam_load assert
-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