summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-11-02 13:10:18 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-11-02 13:13:32 +0100
commitf9aa85f5fe8015204fdab228c6a7b9b0e99b277f (patch)
tree3322362df4bfc5dbc97b5bdf6050184f5124dbc9
parentc64ec4e49c1f06a451187d5f8360df09a777f61c (diff)
stroke: Fix typos
The condition was comparing out with itself (always resulting in a true result) instead of out and in. Pointed out by Clang as "idempotent operation".
-rw-r--r--src/cairo-path-stroke-polygon.c4
-rw-r--r--src/cairo-path-stroke-tristrip.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-path-stroke-polygon.c b/src/cairo-path-stroke-polygon.c
index 9128a003..5d121fac 100644
--- a/src/cairo-path-stroke-polygon.c
+++ b/src/cairo-path-stroke-polygon.c
@@ -440,7 +440,7 @@ outer_close (struct stroker *stroker,
int clockwise;
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
- in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
+ in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
{
return;
}
@@ -635,7 +635,7 @@ outer_join (struct stroker *stroker,
struct stroke_contour *outer;
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
- in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
+ in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
{
return;
}
diff --git a/src/cairo-path-stroke-tristrip.c b/src/cairo-path-stroke-tristrip.c
index 337d814b..86f451cf 100644
--- a/src/cairo-path-stroke-tristrip.c
+++ b/src/cairo-path-stroke-tristrip.c
@@ -236,7 +236,7 @@ outer_close (struct stroker *stroker,
int clockwise;
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
- in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
+ in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
{
return;
}
@@ -422,7 +422,7 @@ outer_join (struct stroker *stroker,
const cairo_point_t *inpt, *outpt;
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
- in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
+ in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
{
return;
}