summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-06-09 15:55:17 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-06-09 15:55:17 -0700
commit20ef86bea0f107ba74e0be21ae9bf0000ab3df2e (patch)
tree01d4ddd5a8cdb87372506b4b101274b464aef3d0 /src/parse.y
parentb9b24822b4277092f67a565b1326d8c21c533ff6 (diff)
parentb5430460704f11dc177a8c7e7a7fcf46977def9b (diff)
downloadmruby-20ef86bea0f107ba74e0be21ae9bf0000ab3df2e.tar.gz
mruby-20ef86bea0f107ba74e0be21ae9bf0000ab3df2e.zip
Merge pull request #1276 from h2so5/replace-isupper-msvc
Replace isupper with a macro in msvc
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 54e8eafce..f5dbdb6fd 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4925,7 +4925,7 @@ parser_yylex(parser_state *p)
pushback(p, c);
}
}
- if (result == 0 && isupper((int)tok(p)[0])) {
+ if (result == 0 && isupper((int)(unsigned char)tok(p)[0])) {
result = tCONSTANT;
}
else {