This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
avogadro/avogadro-1.2.0-glibc-2.23.patch

19 lines
796 B
Diff
Raw Normal View History

--- 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);
}
}