summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorAyman El Didi <ayman@eldidi.org>2022-02-18 00:18:22 -0700
committerAyman El Didi <ayman@eldidi.org>2022-02-19 12:04:21 -0700
commitf83e0ed4e665a1eb317b321964fae4ea934bdf58 (patch)
tree8108098531e1b5c719d4364b2fb98ad6de1c0692 /src/cairoint.h
parent915dd7942264c76c78e15989476b80ba70f70f64 (diff)
downloadcairo-f83e0ed4e665a1eb317b321964fae4ea934bdf58.tar.gz
removed redundant casts in cairoint.h
In a couple of instances, ints are being casted to int before use.
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 8299bf92d..4ffcba033 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -351,10 +351,10 @@ static inline cairo_bool_t
_cairo_rectangle_intersects (const cairo_rectangle_int_t *dst,
const cairo_rectangle_int_t *src)
{
- return !(src->x >= dst->x + (int) dst->width ||
- src->x + (int) src->width <= dst->x ||
- src->y >= dst->y + (int) dst->height ||
- src->y + (int) src->height <= dst->y);
+ return !(src->x >= dst->x + dst->width ||
+ src->x + src->width <= dst->x ||
+ src->y >= dst->y + dst->height ||
+ src->y + src->height <= dst->y);
}
static inline cairo_bool_t
@@ -362,9 +362,9 @@ _cairo_rectangle_contains_rectangle (const cairo_rectangle_int_t *a,
const cairo_rectangle_int_t *b)
{
return (a->x <= b->x &&
- a->x + (int) a->width >= b->x + (int) b->width &&
+ a->x + a->width >= b->x + b->width &&
a->y <= b->y &&
- a->y + (int) a->height >= b->y + (int) b->height);
+ a->y + a->height >= b->y + b->height);
}
cairo_private void