]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
softfloat: Fix warn about implicit conversion from int to int8_t
authorPranith Kumar <bobby.prani@gmail.com>
Wed, 10 Aug 2016 18:55:02 +0000 (14:55 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Aug 2016 15:15:38 +0000 (16:15 +0100)
Change the flag type to 'uint8_t' to fix the implicit conversion error.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Message-id: 20160810185502.32015-1-bobby.prani@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
fpu/softfloat-specialize.h
include/fpu/softfloat.h

index 43d08903a51688b16f4384807d308a6d0e74b514..f5aed72e8f6c30ca6492c3979cd8d7476a56f067 100644 (file)
@@ -197,7 +197,7 @@ float128 float128_default_nan(float_status *status)
 | should be simply `float_exception_flags |= flags;'.
 *----------------------------------------------------------------------------*/
 
-void float_raise(int8_t flags, float_status *status)
+void float_raise(uint8_t flags, float_status *status)
 {
     status->float_exception_flags |= flags;
 }
index 0e57ee53c01326b5d89c444e125952e040360836..1bde349b74dc4108d4a05362d7a1f7ffbd10a396 100644 (file)
@@ -198,7 +198,7 @@ enum {
 typedef struct float_status {
     signed char float_detect_tininess;
     signed char float_rounding_mode;
-    signed char float_exception_flags;
+    uint8_t     float_exception_flags;
     signed char floatx80_rounding_precision;
     /* should denormalised results go to zero and set the inexact flag? */
     flag flush_to_zero;
@@ -274,7 +274,7 @@ static inline flag get_default_nan_mode(float_status *status)
 | Routine to raise any or all of the software IEC/IEEE floating-point
 | exception flags.
 *----------------------------------------------------------------------------*/
-void float_raise(int8_t flags, float_status *status);
+void float_raise(uint8_t flags, float_status *status);
 
 /*----------------------------------------------------------------------------
 | If `a' is denormal and we are in flush-to-zero mode then set the