summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-12-17 17:56:09 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-12-17 17:56:09 +0900
commit3be5bfbc7a3b1e05f2d3af4fbd65a3d3b076f0ea (patch)
tree766fd7af2115deb0266406e54ac6621ca85cc36b
parent9de76a71e180afb9803f6c62f86cf452b863157b (diff)
downloadmruby-3be5bfbc7a3b1e05f2d3af4fbd65a3d3b076f0ea.tar.gz
mruby-3be5bfbc7a3b1e05f2d3af4fbd65a3d3b076f0ea.zip
nextc() might have problem on bytes higer than 0x80; close #628
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
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