From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXCIN-0007fI-RH for qemu-devel@nongnu.org; Tue, 09 Aug 2016 15:02:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXCIK-0002gC-CZ for qemu-devel@nongnu.org; Tue, 09 Aug 2016 15:02:34 -0400 Received: from mail-yb0-x243.google.com ([2607:f8b0:4002:c09::243]:35317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXCIK-0002g0-9E for qemu-devel@nongnu.org; Tue, 09 Aug 2016 15:02:32 -0400 Received: by mail-yb0-x243.google.com with SMTP id g133so504310ybf.2 for ; Tue, 09 Aug 2016 12:02:32 -0700 (PDT) From: Pranith Kumar Date: Tue, 9 Aug 2016 15:02:25 -0400 Message-Id: <20160809190229.27871-2-bobby.prani@gmail.com> In-Reply-To: <20160809190229.27871-1-bobby.prani@gmail.com> References: <20160809190229.27871-1-bobby.prani@gmail.com> Subject: [Qemu-devel] [PATCH 2/5] softfloat: Fix warn about implicit conversion from int to int8_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , Peter Maydell , "open list:All patches CC here" Cc: pbonzini@redhat.com Change the flag type to 'int' to fix the implicit conversion error. Suggested-by: Peter Maydell Signed-off-by: Pranith Kumar --- fpu/softfloat-specialize.h | 2 +- include/fpu/softfloat.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 43d0890..46b4091 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(int flags, float_status *status) { status->float_exception_flags |= flags; } diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 0e57ee5..416cf7a 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -196,9 +196,9 @@ enum { }; typedef struct float_status { + int float_exception_flags; signed char float_detect_tininess; signed char float_rounding_mode; - signed char 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(int flags, float_status *status); /*---------------------------------------------------------------------------- | If `a' is denormal and we are in flush-to-zero mode then set the -- 2.9.2