From 5499e9d71f1df9b324dc3bb758069463d0a28410 Mon Sep 17 00:00:00 2001 From: gitlost Date: Fri, 2 Dec 2022 22:53:20 +0000 Subject: [PATCH] test_output: fix MSVC warning strlen() -> int --- backend/tests/test_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_output.c b/backend/tests/test_output.c index d22e05ed..3af4fee0 100644 --- a/backend/tests/test_output.c +++ b/backend/tests/test_output.c @@ -113,7 +113,7 @@ static void test_fopen(const testCtx *const p_ctx) { if (testContinue(p_ctx, i)) continue; strcpy(outfile, cwdbuf); - len = strlen(outfile); + len = (int) strlen(outfile); if (len && outfile[len - 1] != TEST_OUT_SEP) { outfile[len++] = TEST_OUT_SEP; outfile[len] = '\0'; } dir_exists = subdir_exists = 0;