aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-08-27 17:23:09 +0200
committerSverker Eriksson <[email protected]>2013-09-30 17:34:10 +0200
commit156b011958a3b80e507039ddc916db039874ada1 (patch)
tree1bebd9b4ba948a5fa14d091275f9f334559f35d8 /erts/emulator/beam/erl_db.c
parente0ecc86e35475b434efa6cccba44074ca1040b7a (diff)
downloadotp-156b011958a3b80e507039ddc916db039874ada1.tar.gz
otp-156b011958a3b80e507039ddc916db039874ada1.tar.bz2
otp-156b011958a3b80e507039ddc916db039874ada1.zip
erts: Refactor the ASSERT macro
Introduce unconditional ERTS_ASSERT and use that for both ASSERT and ASSERT_EXPR.
Diffstat (limited to 'erts/emulator/beam/erl_db.c')
-rw-r--r--erts/emulator/beam/erl_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_db.c b/erts/emulator/beam/erl_db.c
index 40b8eaf8fb..41e64fcd4f 100644
--- a/erts/emulator/beam/erl_db.c
+++ b/erts/emulator/beam/erl_db.c
@@ -2236,7 +2236,7 @@ static BIF_RETTYPE ets_select_trap_1(BIF_ALIST_1)
CHECK_TABLES();
tptr = tuple_val(a1);
- ASSERT(arityval(*tptr) >= 1)
+ ASSERT(arityval(*tptr) >= 1);
if ((tb = db_get_table(p, tptr[1], DB_READ, kind)) == NULL) {
BIF_ERROR(p, BADARG);
@@ -2403,7 +2403,7 @@ static BIF_RETTYPE ets_select_count_1(BIF_ALIST_1)
CHECK_TABLES();
tptr = tuple_val(a1);
- ASSERT(arityval(*tptr) >= 1)
+ ASSERT(arityval(*tptr) >= 1);
if ((tb = db_get_table(p, tptr[1], DB_READ, kind)) == NULL) {
BIF_ERROR(p, BADARG);
}