aboutsummaryrefslogtreecommitdiffstats
path: root/src/zstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zstr.c')
-rw-r--r--src/zstr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zstr.c b/src/zstr.c
index 07b1377..1b89118 100644
--- a/src/zstr.c
+++ b/src/zstr.c
@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#include "internals"
+#include "internals.h"
#include <stdio.h>
@@ -39,7 +39,7 @@ zstr(z_t a, char *b)
neg = zsignum(a) < 0;
zabs(num, a);
- n -= neg;
+ n -= (size_t)neg;
n = n > 9 ? (n - 9) : 0;
b[0] = '-';
b += neg;
@@ -53,7 +53,7 @@ zstr(z_t a, char *b)
overridden = b[n + (9 - 1)];
n = n > 9 ? (n - 9) : 0;
} else {
- n += sprintf(b + n, "%lu", (unsigned long)(rem->chars[0]));
+ n += (size_t)sprintf(b + n, "%lu", (unsigned long)(rem->chars[0]));
b[n] = overridden;
break;
}