Commit 505d5b8a971311f7d23df87810ade514e952561b

Carlos Martín Nieto 2015-02-04T12:54:57

Merge pull request #2873 from ethomson/structinit 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",