aboutsummaryrefslogtreecommitdiff
path: root/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'scan.c')
-rw-r--r--scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scan.c b/scan.c
index bd0435c..0e6e7b1 100644
--- a/scan.c
+++ b/scan.c
@@ -9,7 +9,7 @@
#include "cc.h"
struct buffer {
- char *str;
+ unsigned char *str;
size_t len, cap;
};
@@ -26,7 +26,7 @@ struct scanner {
static struct scanner *scanner;
static void
-bufadd(struct buffer *b, char c)
+bufadd(struct buffer *b, int c)
{
if (b->len >= b->cap) {
b->cap = b->cap ? b->cap * 2 : 1<<8;