aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/libm/math/e_cosh.c2
-rw-r--r--newlib/libm/math/e_sinh.c2
-rw-r--r--newlib/libm/math/s_infconst.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libm/math/e_cosh.c b/newlib/libm/math/e_cosh.c
index 54ca1fb..a6310bd 100644
--- a/newlib/libm/math/e_cosh.c
+++ b/newlib/libm/math/e_cosh.c
@@ -80,7 +80,7 @@ static double one = 1.0, half=0.5, huge = 1.0e300;
/* |x| in [log(maxdouble), overflowthresold] */
GET_LOW_WORD(lx,x);
if (ix<0x408633CE ||
- (ix==0x408633ce)&&(lx<=(__uint32_t)0x8fb9f87d)) {
+ (ix==0x408633ce && lx<=(__uint32_t)0x8fb9f87d)) {
w = __ieee754_exp(half*fabs(x));
t = half*w;
return t*w;
diff --git a/newlib/libm/math/e_sinh.c b/newlib/libm/math/e_sinh.c
index fd953dd..cf7ebfb 100644
--- a/newlib/libm/math/e_sinh.c
+++ b/newlib/libm/math/e_sinh.c
@@ -73,7 +73,7 @@ static double one = 1.0, shuge = 1.0e307;
/* |x| in [log(maxdouble), overflowthresold] */
GET_LOW_WORD(lx,x);
- if (ix<0x408633CE || (ix==0x408633ce)&&(lx<=(__uint32_t)0x8fb9f87d)) {
+ if (ix<0x408633CE || (ix==0x408633ce && lx<=(__uint32_t)0x8fb9f87d)) {
w = __ieee754_exp(0.5*fabs(x));
t = h*w;
return t*w;
diff --git a/newlib/libm/math/s_infconst.c b/newlib/libm/math/s_infconst.c
index e6b86d4..6b63afb 100644
--- a/newlib/libm/math/s_infconst.c
+++ b/newlib/libm/math/s_infconst.c
@@ -6,10 +6,10 @@
#ifndef _DOUBLE_IS_32BITS
#ifdef __IEEE_BIG_ENDIAN
-const union __dmath __infinity[1] = {{ 0x7ff00000, 0 }};
+const union __dmath __infinity[1] = {{{ 0x7ff00000, 0 }}};
#else
-const union __dmath __infinity[1] = {{ 0, 0x7ff00000 }};
+const union __dmath __infinity[1] = {{{ 0, 0x7ff00000 }}};
#endif
#else /* defined (_DOUBLE_IS_32BITS) */
-const union __dmath __infinity[1] = {{ 0x7f800000, 0 }};
+const union __dmath __infinity[1] = {{{ 0x7f800000, 0 }}};
#endif /* defined (_DOUBLE_IS_32BITS) */