diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-08-07 17:52:51 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-08-07 17:52:51 +0000 |
commit | ba35b8303c87e141418f99384eedad7471f36d0a (patch) | |
tree | 3b3935b223ec8abbb94009cbd6d272f4ffb08c52 | |
parent | f79b8c456fe520a64e840e42263d3e1cc58b6440 (diff) | |
download | cygnal-ba35b8303c87e141418f99384eedad7471f36d0a.tar.gz cygnal-ba35b8303c87e141418f99384eedad7471f36d0a.tar.bz2 cygnal-ba35b8303c87e141418f99384eedad7471f36d0a.zip |
* libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler
warning.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/stdlib/mprec.h | 2 |
2 files changed, 6 insertions, 1 deletions
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 <vinschen@redhat.com> + + * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler + warning. + 2012-07-30 Kevin Buettner <kevinb@redhat.com> * 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)) */ |