Fixed warnings

This commit is contained in:
Kyler Olsen 2025-11-24 15:02:46 -07:00
parent febf34a737
commit a193006061
2 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,7 @@ SlsStr sls_format(const SlsStr s, ...) {
target_i += items[item_i].self_length;
item_i++;
}
if (s.len > source_i)
if (s.len > (size_t)source_i)
memcpy(str + target_i, s.str + source_i, s.len - source_i);
str[str_new.len] = '\0';

View File

@ -24,6 +24,7 @@ TestsReport run_extra_tests()
.tests = malloc(sizeof(TestResult) * NUM_EXTRA_TESTS)};
size_t i = 0;
(void)i;
// report.tests[i++] = test_malloc_and_copy();
return report;
}