aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-05-07 21:59:26 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-05-07 21:59:26 +0300
commitf8ca822a7e81bd80afa7181ec5c0f0b4a50a4945 (patch)
treec1f332cdba2d0aed44e9f14cb3fc0b04028dd334 /debug.c
parent15070b3cd065d20f04985568edf18723ee7d761e (diff)
downloadegawk-f8ca822a7e81bd80afa7181ec5c0f0b4a50a4945.tar.gz
egawk-f8ca822a7e81bd80afa7181ec5c0f0b4a50a4945.tar.bz2
egawk-f8ca822a7e81bd80afa7181ec5c0f0b4a50a4945.zip
Fix minor printf format warnings.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c3
1 files changed, 2 insertions, 1 deletions
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) {