From dfd607671037ff46d5b16ade10e10efdf0d260be Mon Sep 17 00:00:00 2001 From: Pranith Kumar Date: Wed, 10 Aug 2016 14:55:02 -0400 Subject: softfloat: Fix warn about implicit conversion from int to int8_t Change the flag type to 'uint8_t' to fix the implicit conversion error. Signed-off-by: Pranith Kumar Reviewed-by: Aurelien Jarno Message-id: 20160810185502.32015-1-bobby.prani@gmail.com Signed-off-by: Peter Maydell --- fpu/softfloat-specialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpu') diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 43d08903a5..f5aed72e8f 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -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; } -- cgit v1.2.3-55-g7522