From d29ef8f73a446d978406fec5bccbdf8882964870 Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Sat, 2 Aug 2014 13:56:04 -0700
Subject: [PATCH] Add some braces to silence the warning from clang about
 dangling else statements.

---
 src/lisp/s_log1p.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/lisp/s_log1p.c b/src/lisp/s_log1p.c
index eaec38a5f..87ed92773 100644
--- a/src/lisp/s_log1p.c
+++ b/src/lisp/s_log1p.c
@@ -159,8 +159,14 @@ static double zero = 0.0;
 	}
 	hfsq=0.5*f*f;
 	if(hu==0) {	/* |f| < 2**-20 */
-	    if(f==zero) if(k==0) return zero;  
-			else {c += k*ln2_lo; return k*ln2_hi+c;}
+	    if(f==zero) {
+                if(k==0)
+                    return zero;  
+                else {
+                    c += k*ln2_lo; return k*ln2_hi+c;
+                }
+            }
+            
 	    R = hfsq*(1.0-0.66666666666666666*f);
 	    if(k==0) return f-R; else
 	    	     return k*ln2_hi-((R-(k*ln2_lo+c))-f);
-- 
GitLab