From 3be5bfbc7a3b1e05f2d3af4fbd65a3d3b076f0ea Mon Sep 17 00:00:00 2001 From: Yukihiro Matz Matsumoto Date: Mon, 17 Dec 2012 17:56:09 +0900 Subject: nextc() might have problem on bytes higer than 0x80; close #628 --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parse.y b/src/parse.y index 7ecdbab85..369634e0c 100644 --- a/src/parse.y +++ b/src/parse.y @@ -3075,7 +3075,7 @@ nextc(parser_state *p) return -1; } else { - c = *p->s++; + c = (unsigned char)*p->s++; } if (c == '\n') { // must understand heredoc -- cgit v1.2.3