summaryrefslogtreecommitdiff
path: root/src/htsinthash.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-07-20 14:47:55 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-07-20 14:47:55 +0000
commit724dad438078141008a364ac2d2d3c12b8c1bc72 (patch)
treeb474e2442e9551f0b2e18a27e0d2e02f6982a5af /src/htsinthash.c
parente72170d41275be3b9085928060817cd7d359d954 (diff)
Fixed macro (again)
Diffstat (limited to 'src/htsinthash.c')
-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)