summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-08-26 00:30:33 +0200
committercremno <[email protected]>2014-08-26 00:30:33 +0200
commitbdf6ce34ce988a4b293f48e53aa4157db6ef1688 (patch)
tree78052a6e25c12946f0b4d231f8bc036212aae3da /src/parse.y
parent73a012c80806c5891579903d1bc1f51b424ce0bf (diff)
downloadmruby-bdf6ce34ce988a4b293f48e53aa4157db6ef1688.tar.gz
mruby-bdf6ce34ce988a4b293f48e53aa4157db6ef1688.zip
printf: cast variables to the expected type
%x expects unsigned int and %p expects void * GCC emits a diagnostic about %p/void* in pedantic mode: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 832689bae..0c0a9877f 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -6366,7 +6366,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break;
default:
- printf("node type: %d (0x%x)\n", (int)n, (int)n);
+ printf("node type: %d (0x%x)\n", n, (unsigned)n);
break;
}
#endif