]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
softfloat: Fix declaration of partsN_compare
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 1 Apr 2022 13:22:38 +0000 (07:22 -0600)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 21 Jul 2023 10:20:26 +0000 (11:20 +0100)
The declaration used 'int', while the definition used 'FloatRelation'.
This should have resulted in a compiler error, but mysteriously didn't.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220401132240.79730-2-richard.henderson@linaro.org>
(cherry picked from commit b880867f15623b2e82b0fa6b149753d7c18c615c)

fpu/softfloat.c

index 7f524d437767e3c07b14fd101b2139ab51d8d604..7e62fcf4143c9dce1ca0236fbab166e9e0648767 100644 (file)
@@ -874,10 +874,10 @@ static FloatParts128 *parts128_minmax(FloatParts128 *a, FloatParts128 *b,
 #define parts_minmax(A, B, S, F) \
     PARTS_GENERIC_64_128(minmax, A)(A, B, S, F)
 
-static int parts64_compare(FloatParts64 *a, FloatParts64 *b,
-                           float_status *s, bool q);
-static int parts128_compare(FloatParts128 *a, FloatParts128 *b,
-                            float_status *s, bool q);
+static FloatRelation parts64_compare(FloatParts64 *a, FloatParts64 *b,
+                                     float_status *s, bool q);
+static FloatRelation parts128_compare(FloatParts128 *a, FloatParts128 *b,
+                                      float_status *s, bool q);
 
 #define parts_compare(A, B, S, Q) \
     PARTS_GENERIC_64_128(compare, A)(A, B, S, Q)