summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorh2so5 <[email protected]>2013-06-10 07:17:46 +0900
committerh2so5 <[email protected]>2013-06-10 07:17:46 +0900
commitb5430460704f11dc177a8c7e7a7fcf46977def9b (patch)
tree1f0f7719188870b2578255957638491120117c9b /src/parse.y
parentf8df722e923ab838dc3b38808c4d0fec225e6f6b (diff)
downloadmruby-b5430460704f11dc177a8c7e7a7fcf46977def9b.tar.gz
mruby-b5430460704f11dc177a8c7e7a7fcf46977def9b.zip
Use casting instead of a macro
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/parse.y b/src/parse.y
index bcab3a7bb..f5dbdb6fd 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -42,10 +42,6 @@ static void backref_error(parser_state *p, node *n);
#define isascii(c) (((c) & ~0x7f) == 0)
#endif
-#ifdef _MSC_VER
-#define isupper(c) ((c) >= 'A' && (c) <= 'Z')
-#endif
-
#define identchar(c) (isalnum(c) || (c) == '_' || !isascii(c))
typedef unsigned int stack_type;
@@ -4929,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 {