diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-01 07:22:38 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-04-26 20:01:55 -0700 |
commit | b880867f15623b2e82b0fa6b149753d7c18c615c (patch) | |
tree | 05d93e3258c38c4d91484c946e7514dfc79c8fb2 /fpu/softfloat.c | |
parent | 0cbc135917141053c80480fefbe55f70bb3b1562 (diff) | |
download | qemu-b880867f15623b2e82b0fa6b149753d7c18c615c.zip qemu-b880867f15623b2e82b0fa6b149753d7c18c615c.tar.gz qemu-b880867f15623b2e82b0fa6b149753d7c18c615c.tar.bz2 |
softfloat: Fix declaration of partsN_compare
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>
Diffstat (limited to 'fpu/softfloat.c')
-rw-r--r-- | fpu/softfloat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 5e2cf20..e7d7ad5 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -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) |