Fix build

This commit is contained in:
Jeremy Soller
2018-03-08 15:52:48 -07:00
parent af78f4819a
commit 07c3ce02be
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ pub extern "C" fn isblank(c: c_int) -> c_int {
#[no_mangle]
/// The comment in musl:
/// `/* nonsense function that should NEVER be used! */`
/// /* nonsense function that should NEVER be used! */
pub extern "C" fn toascii(c: c_int) -> c_int {
c & 0x7f
}
+2 -1
View File
@@ -26,8 +26,9 @@ size_t num_test_cases = sizeof(test_cases)/sizeof(struct test_case);
printf("Unexpected result: " #fn "('%c') != %d\n", tc.c, tc.fn); \
}
int main(int argc, char* argv[]) {
int i;
int retval = 0;
for(int i = 0; i < num_test_cases; ++i) {
for(i = 0; i < num_test_cases; ++i) {
struct test_case tc = test_cases[i];
CHECK_TEST(tc, isalnum, retval);
CHECK_TEST(tc, isalpha, retval);