fix tautological enum compare warnings when built with clang 9
authorGianfranco Costamagna <locutusofborg@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000 (01:44 +0100)
committerMichael Gilbert <mgilbert@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000 (01:44 +0100)
Forwarded: pending
Last-Update: 2019-12-31

Gbp-Pq: Topic arm64
Gbp-Pq: Name tautological-compare.patch

dlls/gdiplus/graphics.c

index 65cdf96510d90d9e0d3e0042d75ea9c36ff9e485..1684b1ce3c500f5cf3582516b77b593c0e937185 100644 (file)
@@ -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)