From: Gianfranco Costamagna Date: Wed, 12 Oct 2022 00:18:28 +0000 (+0100) Subject: fix tautological enum compare warnings when built with clang 9 X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~2^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4b63147928948641ddacf2ab751e875cc6579315;p=wine.git fix tautological enum compare warnings when built with clang 9 Forwarded: pending Last-Update: 2019-12-31 Gbp-Pq: Topic arm64 Gbp-Pq: Name tautological-compare.patch --- diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 65cdf96..1684b1c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -6972,8 +6972,8 @@ GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace GpCoordinateSpace src_space, GpPointF *points, INT count) { if(!graphics || !points || count <= 0 || - dst_space < 0 || dst_space > CoordinateSpaceDevice || - src_space < 0 || src_space > CoordinateSpaceDevice) + dst_space > CoordinateSpaceDevice || + src_space > CoordinateSpaceDevice) return InvalidParameter; if(graphics->busy)