summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/htsinthash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htsinthash.c b/src/htsinthash.c
index 9a0f0c5..67c5aa7 100644
--- a/src/htsinthash.c
+++ b/src/htsinthash.c
@@ -405,12 +405,12 @@ static void inthash_compact_pool(inthash hashtable, size_t capacity) {
inthash_assert(&dest[i] < max_dest); \
dest[i] = src[i]; \
} \
+ /* update pool size */ \
+ hashtable->pool.size += i; \
+ assert(hashtable->pool.size <= capacity); \
} \
/* update source */ \
S = dest; \
- /* update pool size */ \
- hashtable->pool.size += i; \
- assert(hashtable->pool.size <= capacity); \
count++; \
} \
} while(0)