From 2bda3a30b0211d3e10caf78e8e0566e7f727093f Mon Sep 17 00:00:00 2001 From: Armin Novak <armin.novak@thincast.com> Date: Wed, 4 Apr 2018 10:45:07 +0200 Subject: [PATCH] Fixed integer to float type cast. --- libfreerdp/primitives/test/TestPrimitivesYUV.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/primitives/test/TestPrimitivesYUV.c b/libfreerdp/primitives/test/TestPrimitivesYUV.c index 7d686592b..7ec2fbb54 100644 --- a/libfreerdp/primitives/test/TestPrimitivesYUV.c +++ b/libfreerdp/primitives/test/TestPrimitivesYUV.c @@ -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",