Merge commit '40ad05bab206c932a32171d45581080c914b06ec'
authorClément Bœsch <cboesch@gopro.com>
Wed, 15 Mar 2017 11:32:15 +0000 (12:32 +0100)
committerClément Bœsch <cboesch@gopro.com>
Wed, 15 Mar 2017 11:32:15 +0000 (12:32 +0100)
* commit '40ad05bab206c932a32171d45581080c914b06ec':
  checkasm: Cast unsigned to signed

Merged-by: Clément Bœsch <cboesch@gopro.com>
tests/checkasm/checkasm.c

index f671980..ecfa5d2 100644 (file)
@@ -217,7 +217,7 @@ int float_near_ulp(float a, float b, unsigned max_ulp)
         return a == b;
     }
 
-    if (abs(x.i - y.i) <= max_ulp)
+    if (llabs((int64_t)x.i - y.i) <= max_ulp)
         return 1;
 
     return 0;