need to cast this to (char) after all, for non-arm architectures.

This commit is contained in:
Enno Rehling 2014-04-11 18:25:07 -07:00
parent bcc116825b
commit e99b69d76e
2 changed files with 5 additions and 5 deletions

2
cutest

@ -1 +1 @@
Subproject commit 788659594ef87e9f497b8039da764182adfd2943
Subproject commit d83cec09a52835274ab8ed4849de16fb8658982a

View File

@ -15,11 +15,11 @@ static void test_strlcat(CuTest * tc)
buffer[0] = '\0';
CuAssertIntEquals(tc, 4, strlcat(buffer, "herp", 8));
CuAssertStrEquals(tc, "herp", buffer);
CuAssertIntEquals(tc, 0xfe, buffer[5]);
CuAssertIntEquals(tc, (char)0xfe, buffer[5]);
CuAssertIntEquals(tc, 8, strlcat(buffer, "derp", 8));
CuAssertStrEquals(tc, "herpder", buffer);
CuAssertIntEquals(tc, 0xfe, buffer[8]);
CuAssertIntEquals(tc, (char)0xfe, buffer[8]);
}
static void test_strlcpy(CuTest * tc)
@ -33,11 +33,11 @@ static void test_strlcpy(CuTest * tc)
CuAssertIntEquals(tc, 4, strlcpy(buffer, "herp", 8));
CuAssertStrEquals(tc, "herp", buffer);
CuAssertIntEquals(tc, 0xed, buffer[5]);
CuAssertIntEquals(tc, (char)0xed, buffer[5]);
CuAssertIntEquals(tc, 8, strlcpy(buffer, "herpderp", 8));
CuAssertStrEquals(tc, "herpder", buffer);
CuAssertIntEquals(tc, 0xed, buffer[8]);
CuAssertIntEquals(tc, (char)0xed, buffer[8]);
}
static void test_slprintf(CuTest * tc)