19 lines
796 B
Diff
19 lines
796 B
Diff
--- 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);
|
|
}
|
|
}
|