Fix warning for int in bool context

Fix GCC warning:
`warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]`
This commit is contained in:
Björn Blissing 2024-09-12 18:03:03 +02:00
parent 755c45b444
commit 55156906c1
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void distanceSignCorrection(const BitmapRef<float, 1> &sdf, const Shape &shape,
template <int N>
static void multiDistanceSignCorrection(const BitmapRef<float, N> &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;