Commit 273ddc54f5818b73725298f17915a307bd7c884b

nulltoken 2013-09-12T13:50:00

clar: Fix clar__assert_equal error message formating

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/clar.c b/tests-clar/clar.c
index 5189e79..6c7399a 100644
--- a/tests-clar/clar.c
+++ b/tests-clar/clar.c
@@ -468,7 +468,7 @@ void clar__assert_equal(
 			}
 		}
 	}
-	else if (!strcmp(PRIuZ, fmt) || !strcmp(PRIxZ, fmt)) {
+	else if (!strcmp("%"PRIuZ, fmt) || !strcmp("%"PRIxZ, fmt)) {
 		size_t sz1 = va_arg(args, size_t), sz2 = va_arg(args, size_t);
 		is_equal = (sz1 == sz2);
 		if (!is_equal) {