summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKazuki Tsujimoto <[email protected]>2012-05-20 16:23:34 +0900
committerKazuki Tsujimoto <[email protected]>2012-05-20 16:23:34 +0900
commitdf6f917df85918964b02e18cd1d77ffc02eb5af6 (patch)
treee2f8ff3145fa7a846a5ca979672fb74af065164a /src
parentdb196c5128e54468a5fb628fd082bd4d56e53927 (diff)
downloadmruby-df6f917df85918964b02e18cd1d77ffc02eb5af6.tar.gz
mruby-df6f917df85918964b02e18cd1d77ffc02eb5af6.zip
Fix wrong cast
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 7987bae18..63c15e056 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4647,7 +4647,7 @@ mrb_parser_parse(parser_state *p)
}
}
else {
- if ((int)(intptr_t)tree->car == NODE_SCOPE) {
+ if ((intptr_t)tree->car == NODE_SCOPE) {
p->locals = cons(tree->cdr->car, 0);
}
if (p->begin_tree) {