aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsplit.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-02 21:16:00 +0100
committerMattias Andrée <maandree@kth.se>2016-03-02 21:16:00 +0100
commitc27c4204f0d734bc1a889b4405469ac83d568883 (patch)
treeff9fdcd42402bb2a7618a3ea3795cf3d63131940 /src/zsplit.c
parentAdd zand, zor, zxor, znot, zbtest, zsplit, and the newly introduced ztrunc (diff)
downloadlibzahl-c27c4204f0d734bc1a889b4405469ac83d568883.tar.gz
libzahl-c27c4204f0d734bc1a889b4405469ac83d568883.tar.bz2
libzahl-c27c4204f0d734bc1a889b4405469ac83d568883.tar.xz
Cleanup and add missing header inclusions
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsplit.c')
-rw-r--r--src/zsplit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zsplit.c b/src/zsplit.c
index 40b3e54..3e7940b 100644
--- a/src/zsplit.c
+++ b/src/zsplit.c
@@ -13,7 +13,7 @@ zsplit(z_t high, z_t low, z_t a, size_t delim)
return;
}
- chars = delim >> LB_BITS_PER_CHAR;
+ chars = FLOOR_BITS_TO_CHARS(delim);
if (high == a) {
if (a->used < chars)