From db196c5128e54468a5fb628fd082bd4d56e53927 Mon Sep 17 00:00:00 2001 From: Kazuki Tsujimoto Date: Sun, 20 May 2012 12:35:15 +0900 Subject: Add cast to remove "cast from pointer to integer of different size" warning --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3