From 95640319444d841f50b02ef8d23f918ffe3d55ef Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sat, 26 Apr 2008 20:13:23 +0000 Subject: use correct printf format for size_t (debug only code) --- usr.bin/dc/bcode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/dc') diff --git a/usr.bin/dc/bcode.c b/usr.bin/dc/bcode.c index c693febb202..0549872cfaf 100644 --- a/usr.bin/dc/bcode.c +++ b/usr.bin/dc/bcode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcode.c,v 1.35 2007/09/02 23:50:04 deraadt Exp $ */ +/* $OpenBSD: bcode.c,v 1.36 2008/04/26 20:13:22 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: bcode.c,v 1.35 2007/09/02 23:50:04 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: bcode.c,v 1.36 2008/04/26 20:13:22 otto Exp $"; #endif /* not lint */ #include @@ -1730,7 +1730,7 @@ eval(void) (void)fprintf(stderr, "# %c\n", ch); stack_print(stderr, &bmachine.stack, "* ", bmachine.obase); - (void)fprintf(stderr, "%d =>\n", bmachine.readsp); + (void)fprintf(stderr, "%zd =>\n", bmachine.readsp); #endif if (0 <= ch && ch < UCHAR_MAX) @@ -1741,7 +1741,7 @@ eval(void) #ifdef DEBUGGING stack_print(stderr, &bmachine.stack, "* ", bmachine.obase); - (void)fprintf(stderr, "%d ==\n", bmachine.readsp); + (void)fprintf(stderr, "%zd ==\n", bmachine.readsp); #endif } } -- cgit v1.2.3