summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-04 17:12:47 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-04 17:12:47 +0900
commit472847adc24f10e30ef5ff09814cf12d6a3d372a (patch)
treed6e03705349448682b17c2acd13457d2fc508ac5 /src/parse.y
parentf141ae42c0ad52ef37694ae195f5841ea2678b4f (diff)
downloadmruby-472847adc24f10e30ef5ff09814cf12d6a3d372a.tar.gz
mruby-472847adc24f10e30ef5ff09814cf12d6a3d372a.zip
input cast to unsigned char for unqualified tolower(); close #342
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 025707670..af91f09b6 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3949,7 +3949,7 @@ parser_yylex(parser_state *p)
}
if (!ISXDIGIT(c)) break;
nondigit = 0;
- tokadd(p, c);
+ tokadd(p, tolower(c));
} while ((c = nextc(p)) != -1);
}
pushback(p, c);