diff options
author | Sverker Eriksson <[email protected]> | 2018-09-21 20:40:26 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-09-21 20:40:26 +0200 |
commit | 433ef9a58f18a60b37bc9e767fe915c3e52549a8 (patch) | |
tree | 76c1b13ee3c96eb235a18a212142da8f919ec439 /erts/emulator/beam/erl_db_util.c | |
parent | f26d11aa57aff58eec7ba743916981964da711ca (diff) | |
parent | 50459bca9fd60733f9b354b2a2a4672fd8dc77e9 (diff) | |
download | otp-433ef9a58f18a60b37bc9e767fe915c3e52549a8.tar.gz otp-433ef9a58f18a60b37bc9e767fe915c3e52549a8.tar.bz2 otp-433ef9a58f18a60b37bc9e767fe915c3e52549a8.zip |
Merge branch 'sverker/erts/beautify-ifdef-DEBUG'
* sverker/erts/beautify-ifdef-DEBUG:
erts: Beautify away #ifdef DEBUG
Diffstat (limited to 'erts/emulator/beam/erl_db_util.c')
-rw-r--r-- | erts/emulator/beam/erl_db_util.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_db_util.c b/erts/emulator/beam/erl_db_util.c index f1d47326b4..a78623f490 100644 --- a/erts/emulator/beam/erl_db_util.c +++ b/erts/emulator/beam/erl_db_util.c @@ -3118,9 +3118,7 @@ void* db_store_term_comp(DbTableCommon *tb, DbTerm* old, Uint offset, Eterm obj) Uint new_sz = offset + db_size_dbterm_comp(tb, obj); byte* basep; DbTerm* newp; -#ifdef DEBUG byte* top; -#endif ASSERT(tb->compress); if (old != 0) { @@ -3142,11 +3140,8 @@ void* db_store_term_comp(DbTableCommon *tb, DbTerm* old, Uint offset, Eterm obj) } newp->size = size_object(obj); -#ifdef DEBUG - top = -#endif - copy_to_comp(tb, obj, newp, new_sz); - ASSERT(top <= basep + new_sz); + top = copy_to_comp(tb, obj, newp, new_sz); + ASSERT(top <= basep + new_sz); (void)top; /* ToDo: Maybe realloc if ((basep+new_sz) - top) > WASTED_SPACE_LIMIT */ |