Fixed integer to float type cast.
authorArmin Novak <armin.novak@thincast.com>
Wed, 4 Apr 2018 08:45:07 +0000 (10:45 +0200)
committerArmin Novak <armin.novak@thincast.com>
Wed, 4 Apr 2018 08:45:07 +0000 (10:45 +0200)
libfreerdp/primitives/test/TestPrimitivesYUV.c

index 7d68659..7ec2fbb 100644 (file)
@@ -635,7 +635,7 @@ static BOOL check_for_mismatches(const BYTE* planeA, const BYTE* planeB, UINT32
                const BYTE a = planeA[x];
                const BYTE b = planeB[x];
 
-               if (fabsf(a - b) > 2.0f)
+               if (fabsf((float)a - (float)b) > 2.0f)
                {
                        rc = TRUE;
                        fprintf(stderr, "[%08x] %02x != %02x\n",