From 6ea8fc645c5c60634e864a2741ee897b93a4ef5f Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Sat, 2 Aug 2014 15:12:40 -0700 Subject: [PATCH] Add parens around && expressions to silence a clang warning. --- src/lisp/e_cosh.c | 2 +- src/lisp/e_sinh.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lisp/e_cosh.c b/src/lisp/e_cosh.c index f33ec02e8..f022ec040 100644 --- a/src/lisp/e_cosh.c +++ b/src/lisp/e_cosh.c @@ -80,7 +80,7 @@ static double one = 1.0, half=0.5, huge = 1.0e300; /* |x| in [log(maxdouble), overflowthresold] */ lx = *( (((*(unsigned*)&one)>>29)) + (unsigned*)&x); if (ix<0x408633CE || - (ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d)) { + ((ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d))) { w = __ieee754_exp(half*fabs(x)); t = half*w; return t*w; diff --git a/src/lisp/e_sinh.c b/src/lisp/e_sinh.c index 16671a9f9..84447418a 100644 --- a/src/lisp/e_sinh.c +++ b/src/lisp/e_sinh.c @@ -73,7 +73,7 @@ static double one = 1.0, shuge = 1.0e307; /* |x| in [log(maxdouble), overflowthresold] */ lx = *( (((*(unsigned*)&one)>>29)) + (unsigned*)&x); - if (ix<0x408633CE || (ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d)) { + if (ix<0x408633CE || ((ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d))) { w = __ieee754_exp(0.5*fabs(x)); t = h*w; return t*w; -- GitLab