aboutsummaryrefslogtreecommitdiffstats
path: root/src/znot.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/znot.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/znot.c')
-rw-r--r--src/znot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/znot.c b/src/znot.c
index 8504933..bcb17e2 100644
--- a/src/znot.c
+++ b/src/znot.c
@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#include "internals"
+#include "internals.h"
void
@@ -8,7 +8,7 @@ znot(z_t a, z_t b)
size_t bits, n;
if (zzero(b)) {
- SET_SIGNUM(a, 0)
+ SET_SIGNUM(a, 0);
return;
}
@@ -21,7 +21,7 @@ znot(z_t a, z_t b)
bits &= BITS_PER_CHAR - 1;
a->chars[a->used - 1] &= ((zahl_char_t)1 << bits) - 1;
- while (; a->used; a->used--)
+ for (; a->used; a->used--)
if (a->chars[a->used - 1])
break;
if (!a->used)