From f8ca822a7e81bd80afa7181ec5c0f0b4a50a4945 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 7 May 2012 21:59:26 +0300 Subject: Fix minor printf format warnings. --- debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debug.c') diff --git a/debug.c b/debug.c index 4306392f..d8f5d5ee 100644 --- a/debug.c +++ b/debug.c @@ -3704,7 +3704,8 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump) if (noffset == 0) { static char buf[50]; /* offset for 2nd to last lines in a multi-line output */ - noffset = sprintf(buf, "[ :%p] %-20.20s: ", pc, opcode2str(pc->opcode)); + noffset = sprintf(buf, "[ :%p] %-20.20s: ", (void *) pc, + opcode2str(pc->opcode)); } if (pc->opcode == Op_func) { -- cgit v1.2.3