avogadro-glibc2.23.patch 796 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
--- avogadro-1.2.0/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c.orig	2016-06-16 06:36:58.888214167 +0000
+++ avogadro-1.2.0/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c	2016-06-16 06:37:19.091459100 +0000
@@ -67,13 +67,13 @@
         }
         case 2 : {
             //o->v = dpolynomial[m+l];
-            char *d = (signbit(m) == 1 ? "-" : "+");
+            char *d = (signbit(m*1.0) == 1 ? "-" : "+");
             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 = (signbit(m*1.0) == 1 ? "-" : "+");
             snprintf(o->name, sizeof(o->name), "%d%c%d%s",n,t,abs(m),d);
         }
     }