File 0004-don-t-use-signbit-on-non-float.patch of Package avogadro-qt4

From 53e179f4dbfa5062478f02b1ae463f4ea4251f30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 27 Dec 2017 10:00:30 +0100
Subject: [PATCH 4/4] don't use signbit on non-float

---
 libavogadro/src/extensions/symmetry/libmsym/src/orbital.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c b/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c
index 143b4de03e0f..42b5979d7d94 100644
--- a/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c
+++ b/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c
@@ -67,13 +67,13 @@ msym_error_t orbitalFromQuantumNumbers(int n, int l, int m, msym_orbital_t *o){
         }
         case 2 : {
             //o->v = dpolynomial[m+l];
-            char *d = (signbit(m) == 1 ? "-" : "+");
+            char *d = (m < 0) ? "-" : "+";
             snprintf(o->name, sizeof(o->name), "%dd%d%s",n,abs(m),d);
             break;
         }
         default : {
             char t = 'f' - 3 + l;
-            char *d = (signbit(m) == 1 ? "-" : "+");
+            char *d = (m < 0) ? "-" : "+";
             snprintf(o->name, sizeof(o->name), "%d%c%d%s",n,t,abs(m),d);
         }
     }
-- 
2.15.1

openSUSE Build Service is sponsored by