From ba35b8303c87e141418f99384eedad7471f36d0a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 7 Aug 2012 17:52:51 +0000 Subject: [PATCH] * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler warning. --- newlib/ChangeLog | 5 +++++ newlib/libc/stdlib/mprec.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 099dcb945..9d5d0399e 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2012-08-07 Corinna Vinschen + + * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler + warning. + 2012-07-30 Kevin Buettner * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specific diff --git a/newlib/libc/stdlib/mprec.h b/newlib/libc/stdlib/mprec.h index dea89bf11..5a71576be 100644 --- a/newlib/libc/stdlib/mprec.h +++ b/newlib/libc/stdlib/mprec.h @@ -98,7 +98,7 @@ typedef union { double d; __ULong i[2]; } U; #define SI 0 #endif -#define Storeinc(a,b,c) (*(a)++ = (b) << 16 | (c) & 0xffff) +#define Storeinc(a,b,c) (*(a)++ = ((b) << 16) | ((c) & 0xffff)) /* #define P DBL_MANT_DIG */ /* Ten_pmax = floor(P*log(2)/log(5)) */