diff options
| author | Kazuki Tsujimoto <[email protected]> | 2012-05-20 12:35:15 +0900 |
|---|---|---|
| committer | Kazuki Tsujimoto <[email protected]> | 2012-05-20 14:41:50 +0900 |
| commit | db196c5128e54468a5fb628fd082bd4d56e53927 (patch) | |
| tree | e8b914f83a149db9858e5327da5a36a5101fca14 | |
| parent | c8b679bf693e0793f8b5ae505517b1d9220d4bfc (diff) | |
| download | mruby-db196c5128e54468a5fb628fd082bd4d56e53927.tar.gz mruby-db196c5128e54468a5fb628fd082bd4d56e53927.zip | |
Add cast to remove "cast from pointer to integer of different size" warning
| -rw-r--r-- | src/parse.y | 2 |
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) { |
