summaryrefslogtreecommitdiff
blob: 601ec7cabcc9169f5afbced749b18f07f968a5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- openbabel/c3d.cpp.org	2002-06-19 23:18:59.000000000 +0200
+++ openbabel/c3d.cpp	2002-10-27 18:47:04.000000000 +0100
@@ -150,7 +150,7 @@
     }
 
   if (!natoms) return(false);
-  divisor = pow(10.0,exponent);
+  divisor = pow((float)10.0,(float)exponent);
   mol.ReserveAtoms(natoms);
 
   ttab.SetToType("INT");
--- src/graphics/views.cpp.org	2002-06-20 13:27:04.000000000 +0200
+++ src/graphics/views.cpp	2002-10-27 19:57:12.000000000 +0100
@@ -486,7 +486,7 @@
 
 	glInitNames();
 	
-	i32s zzz = (i32s) sqrt(dv.size());	// support square datasets only!!!
+	i32s zzz = (i32s) sqrt((double)dv.size());	// support square datasets only!!!
 	for (i32s n1 = 0;n1 < zzz - 1;n1++)
 	{
 		for (i32s n2 = 0;n2 < zzz - 1;n2++)
@@ -542,7 +542,7 @@
 	if (sy < 0.0) return;
 	if (sy > 1.0) return;
 	
-	i32s zzz = (i32s) sqrt(dv.size());	// support square datasets only!!!
+	i32s zzz = (i32s) sqrt((double)dv.size());	// support square datasets only!!!
 	i32s index = (i32s) (((i32s) (sx * zzz)) * zzz + sy * zzz);
 	if (index >= (i32s) dv.size()) return;