mirror of https://github.com/Chlumsky/msdfgen.git
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:
parent
755c45b444
commit
55156906c1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue