aboutsummaryrefslogtreecommitdiffstats
path: root/src/zrsh.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-04 09:28:01 +0100
committerMattias Andrée <maandree@kth.se>2016-03-04 09:28:01 +0100
commit0a7e36380717fe926d43ab30ef6162db9bd71723 (patch)
treeb0ad75c7525688f8e54319e440b251213a4ef3db /src/zrsh.c
parentAdd zptest (diff)
downloadlibzahl-0a7e36380717fe926d43ab30ef6162db9bd71723.tar.gz
libzahl-0a7e36380717fe926d43ab30ef6162db9bd71723.tar.bz2
libzahl-0a7e36380717fe926d43ab30ef6162db9bd71723.tar.xz
Add makefile and fix errors
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zrsh.c')
-rw-r--r--src/zrsh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zrsh.c b/src/zrsh.c
index ebc00d7..c3bd63e 100644
--- a/src/zrsh.c
+++ b/src/zrsh.c
@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#include "internals"
+#include "internals.h"
void
@@ -19,7 +19,7 @@ zrsh(z_t a, z_t b, size_t bits)
return;
}
- bits = BITS_IN_LAST_CHAR(bits)
+ bits = BITS_IN_LAST_CHAR(bits);
cbits = BITS_PER_CHAR - 1 - bits;
if (chars && a == b) {
@@ -28,7 +28,7 @@ zrsh(z_t a, z_t b, size_t bits)
} else if (a != b) {
a->used = b->used - chars;
if (a->alloced < a->used)
- zahl_realloc(a->chars, a->used);
+ zahl_realloc(a, a->used);
zmemcpy(a->chars, b->chars + chars, a->used);
}