Fix warning of clang

This commit is contained in:
Thomas Preud'homme
2014-03-09 22:52:31 +08:00
parent 98afe11c85
commit 62d1da1b3e
3 changed files with 24 additions and 24 deletions

View File

@ -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 */