diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/region.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/region.c b/util/region.c index a3b13e06..b74c55e5 100644 --- a/util/region.c +++ b/util/region.c @@ -111,6 +111,8 @@ void wlr_region_transform(pixman_region32_t *dst, const pixman_region32_t *src, void wlr_region_expand(pixman_region32_t *dst, const pixman_region32_t *src, int distance) { + assert(distance >= 0); + if (distance == 0) { pixman_region32_copy(dst, src); return; |