summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-05 10:24:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-05 10:24:14 +0100
commit5f878f917980cde145d4c385b0c0b66336c0f454 (patch)
tree732f3e349457da39442822b4134a6b78628497c5
parent840dad765febf7b807bbb75e401c159a8c5c4dfe (diff)
clip: Trivial compiler warning
cairo-clip.c: In function ‘_cairo_clip_path_reapply_clip_path_translate’: cairo-clip.c:446: warning: suggest parentheses around assignment used as truth value
-rw-r--r--src/cairo-clip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 0b511255..939eb1a9 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -443,7 +443,8 @@ _cairo_clip_path_reapply_clip_path_translate (cairo_clip_t *clip,
clip_path->flags = other_path->flags;
if (other_path->region != NULL) {
clip_path->region = cairo_region_copy (other_path->region);
- if (unlikely (status = clip_path->region->status)) {
+ status = clip_path->region->status;
+ if (unlikely (status)) {
clip->path = clip->path->prev;
_cairo_clip_path_destroy (clip_path);
return status;