Skip to content

Commit

Permalink
clar: Fix clar__assert_equal error message formating
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Sep 12, 2013
1 parent a6ee166 commit 273ddc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests-clar/clar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 273ddc5

Please sign in to comment.