diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-05-05 18:30:19 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-05-05 20:02:20 +0200 |
commit | 4637c5dc54b4b7c19bbda8f5d158ffa96e8f3862 (patch) | |
tree | 4d52dcca0545f4a807a7bf40d23b696606cccfb3 /source/html | |
parent | 8219259c39f19f45c2f094a6ba7930f940b1074a (diff) | |
download | mupdf-4637c5dc54b4b7c19bbda8f5d158ffa96e8f3862.tar.xz |
epub: Fix signedness bug when testing character ranges.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/css-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c index f98287c0..1090d515 100644 --- a/source/html/css-parse.c +++ b/source/html/css-parse.c @@ -3,7 +3,7 @@ struct lexbuf { fz_context *ctx; - const char *s; + const unsigned char *s; const char *file; int line; int lookahead; @@ -142,7 +142,7 @@ static void css_lex_next(struct lexbuf *buf) static void css_lex_init(fz_context *ctx, struct lexbuf *buf, const char *s, const char *file) { buf->ctx = ctx; - buf->s = s; + buf->s = (const unsigned char *)s; buf->c = 0; buf->file = file; buf->line = 1; |