diff --git a/newlib/libm/math/e_cosh.c b/newlib/libm/math/e_cosh.c index 54ca1fb95..a6310bd07 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 fd953ddaa..cf7ebfb88 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 e6b86d497..6b63afbca 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) */