Skip to content

Commit 511787a

Browse files
committed
nanosvg #148 "Remove unnecessary parentheses" memononen/nanosvg@93ce879
1 parent fa5e2e8 commit 511787a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generic/nanosvgrast.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ static void nsvg__flattenCubicBez(NSVGrasterizer* r,
368368

369369
dx = x4 - x1;
370370
dy = y4 - y1;
371-
d2 = nsvg__absf(((x2 - x4) * dy - (y2 - y4) * dx));
372-
d3 = nsvg__absf(((x3 - x4) * dy - (y3 - y4) * dx));
371+
d2 = nsvg__absf((x2 - x4) * dy - (y2 - y4) * dx);
372+
d3 = nsvg__absf((x3 - x4) * dy - (y3 - y4) * dx);
373373

374374
if ((d2 + d3)*(d2 + d3) < r->tessTol * (dx*dx + dy*dy)) {
375375
nsvg__addPathPoint(r, x4, y4, type);

0 commit comments

Comments
 (0)