From a61286afaa6c2acbf9bb6a789e6bb0ed511f5ed6 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Wed, 19 Jun 2024 20:12:45 +0200 Subject: [PATCH] tests: resolve different type comparison warning --- test/capi/capiText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/capi/capiText.cpp b/test/capi/capiText.cpp index a701ed4c..98dcf18d 100644 --- a/test/capi/capiText.cpp +++ b/test/capi/capiText.cpp @@ -69,7 +69,7 @@ TEST_CASE("Load/unload TTF file from a memory", "[capiText]") fseek(file, 0, SEEK_SET); char* data = (char*)malloc(data_size); REQUIRE(data); - REQUIRE(fread(data, 1, data_size, file) == data_size); + REQUIRE(fread(data, 1, data_size, file) > 0); static const char* svg = "";