From a193006061991a9617ab74ce258382a734502c57 Mon Sep 17 00:00:00 2001 From: Kyler Date: Mon, 24 Nov 2025 15:02:46 -0700 Subject: [PATCH] Fixed warnings --- SLS_C/src/string.c | 2 +- SLS_C/tests/extra_tests.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; }