fix tautological enum compare warnings when built with clang 9
authorGianfranco Costamagna <locutusofborg@debian.org>
Sun, 13 Mar 2022 04:27:41 +0000 (04:27 +0000)
committerMichael Gilbert <mgilbert@debian.org>
Sun, 13 Mar 2022 04:27:41 +0000 (04:27 +0000)
Forwarded: pending
Last-Update: 2019-12-31

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

dlls/gdiplus/graphics.c

index e5a709f6aa53ae31e640a6ce48277e038d184b88..9b5e35c3b780cfda69d7a50ee02cfd69a25f40a3 100644 (file)
@@ -6943,8 +6943,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)