From 55156906c152c9409534e4e6513aa29dc3f98351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Blissing?= Date: Thu, 12 Sep 2024 18:03:03 +0200 Subject: [PATCH] Fix warning for int in bool context Fix GCC warning: `warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]` --- core/rasterization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rasterization.cpp b/core/rasterization.cpp index 9aa695a..8ceec77 100644 --- a/core/rasterization.cpp +++ b/core/rasterization.cpp @@ -33,7 +33,7 @@ void distanceSignCorrection(const BitmapRef &sdf, const Shape &shape, template static void multiDistanceSignCorrection(const BitmapRef &sdf, const Shape &shape, const Projection &projection, FillRule fillRule) { int w = sdf.width, h = sdf.height; - if (!(w*h)) + if (!(w && h)) return; Scanline scanline; bool ambiguous = false;