aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccpp.c b/tccpp.c
index b12b120..cf1fc65 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -1247,7 +1247,7 @@ static inline int hash_cached_include(const char *filename)
unsigned int h;
h = TOK_HASH_INIT;
- s = filename;
+ s = (unsigned char *) filename;
while (*s) {
h = TOK_HASH_FUNC(h, *s);
s++;
@@ -2222,7 +2222,7 @@ maybe_newline:
goto token_found;
pts = &(ts->hash_next);
}
- ts = tok_alloc_new(pts, p1, len);
+ ts = tok_alloc_new(pts, (char *) p1, len);
token_found: ;
} else {
/* slower case */