Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-03-07 22:53:00 +0400
committerEdward Thomson <ethomson@microsoft.com>2014-03-07 22:53:00 +0400
commitdd954a3735b429c976459dbb3d26405c41de2352 (patch)
tree9d9c1fdcbe8389cd56695bfd7ed598b421e98e28 /tests/clar.c
parent041cd4a23ff4fb17e7e9250521f78819636afbfd (diff)
Update clar to e1990d6
Diffstat (limited to 'tests/clar.c')
-rw-r--r--tests/clar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/clar.c b/tests/clar.c
index 90aeb571d..535424130 100644
--- a/tests/clar.c
+++ b/tests/clar.c
@@ -476,12 +476,12 @@ void clar__assert_equal(
else if(!strcmp("%.*s", fmt)) {
const char *s1 = va_arg(args, const char *);
const char *s2 = va_arg(args, const char *);
- size_t len = va_arg(args, size_t);
+ int len = va_arg(args, int);
is_equal = (!s1 || !s2) ? (s1 == s2) : !strncmp(s1, s2, len);
if (!is_equal) {
if (s1 && s2) {
- size_t pos;
+ int pos;
for (pos = 0; s1[pos] == s2[pos] && pos < len; ++pos)
/* find differing byte offset */;
p_snprintf(buf, sizeof(buf), "'%.*s' != '%.*s' (at byte %d)",