diff --git a/SLS_C/src/string.c b/SLS_C/src/string.c index 2e2cffc..aba5760 100644 --- a/SLS_C/src/string.c +++ b/SLS_C/src/string.c @@ -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'; diff --git a/SLS_C/tests/extra_tests.c b/SLS_C/tests/extra_tests.c index 3a03405..8172ec7 100644 --- a/SLS_C/tests/extra_tests.c +++ b/SLS_C/tests/extra_tests.c @@ -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; }