changeset 578:ac0668f8c242

fixed two printf()s of size_t in unistr_dump()
author mortenp
date Tue, 05 Sep 2006 05:25:51 +1000
parents 67fe4a373780
children dae40c9e616d
files src/unistr.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/unistr.c	Tue Sep 05 05:19:16 2006 +1000
+++ b/src/unistr.c	Tue Sep 05 05:25:51 2006 +1000
@@ -185,8 +185,8 @@
 	unsigned int i;
 
 	printf("unistr_dump(%p)\n", (void *)str);
-	printf(" ->len = %d\n", str->len);
-	printf(" ->alloc_len = %d\n", str->alloc_len);
+	printf(" ->len = %lu\n", (unsigned long)str->len);
+	printf(" ->alloc_len = %lu\n", (unsigned long)str->alloc_len);
 	printf(" ->chars [ ");
 	for (i=0; i<str->len; i++) {
 		if ((str->chars[i] <= 0x7F) && (str->chars[i] != '\n')) {