mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user