Commit f45f9b6dbc8f7ee37b354196350d0e575cf7c0fe

Edward Thomson 2015-02-04T03:52:34

structinit test: use %PRIuZ instead of %d for size_t

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/core/structinit.c b/tests/core/structinit.c
index d064f34..25254b7 100644
--- a/tests/core/structinit.c
+++ b/tests/core/structinit.c
@@ -45,7 +45,7 @@ static void options_cmp(void *one, void *two, size_t size, const char *name)
 		if (((char *)one)[i] != ((char *)two)[i]) {
 			char desc[1024];
 
-			p_snprintf(desc, 1024, "Difference in %s at byte %d: macro=%u / func=%u",
+			p_snprintf(desc, 1024, "Difference in %s at byte %" PRIuZ ": macro=%u / func=%u",
 				name, i, ((char *)one)[i], ((char *)two)[i]);
 			clar__fail(__FILE__, __LINE__,
 				"Difference between macro and function options initializer",