From cd23817bf1884fee4457ab3381320b0c8fc33f48 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Wed, 28 Feb 2024 18:11:55 +0100 Subject: Fixed remaining compiler warnings Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed. --- source/core/StarFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarFont.cpp') diff --git a/source/core/StarFont.cpp b/source/core/StarFont.cpp index 8113cf9..82151e3 100644 --- a/source/core/StarFont.cpp +++ b/source/core/StarFont.cpp @@ -115,7 +115,7 @@ std::pair Font::render(String::Char c) { for (unsigned y = 0; y != height; ++y) { uint8_t* p = slot->bitmap.buffer + y * slot->bitmap.pitch; for (unsigned x = 0; x != width; ++x) { - if (x >= 0 && y >= 0 && x < width && y < height) { + if (x < width && y < height) { uint8_t value = *(p + x); if (m_alphaThreshold) { if (value >= m_alphaThreshold) { -- cgit v1.2.3