summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-05-05 18:30:19 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-05-05 20:02:20 +0200
commit4637c5dc54b4b7c19bbda8f5d158ffa96e8f3862 (patch)
tree4d52dcca0545f4a807a7bf40d23b696606cccfb3 /source/html/css-parse.c
parent8219259c39f19f45c2f094a6ba7930f940b1074a (diff)
downloadmupdf-4637c5dc54b4b7c19bbda8f5d158ffa96e8f3862.tar.xz
epub: Fix signedness bug when testing character ranges.
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c4
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;