summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKazuki Tsujimoto <[email protected]>2012-05-20 12:35:15 +0900
committerKazuki Tsujimoto <[email protected]>2012-05-20 14:41:50 +0900
commitdb196c5128e54468a5fb628fd082bd4d56e53927 (patch)
treee8b914f83a149db9858e5327da5a36a5101fca14 /src
parentc8b679bf693e0793f8b5ae505517b1d9220d4bfc (diff)
downloadmruby-db196c5128e54468a5fb628fd082bd4d56e53927.tar.gz
mruby-db196c5128e54468a5fb628fd082bd4d56e53927.zip
Add cast to remove "cast from pointer to integer of different size" warning
Diffstat (limited to 'src')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 4b1f02106..7987bae18 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4647,7 +4647,7 @@ mrb_parser_parse(parser_state *p)
}
}
else {
- if ((int)tree->car == NODE_SCOPE) {
+ if ((int)(intptr_t)tree->car == NODE_SCOPE) {
p->locals = cons(tree->cdr->car, 0);
}
if (p->begin_tree) {