Revision: 38955
          http://brlcad.svn.sourceforge.net/brlcad/?rev=38955&view=rev
Author:   erikgreenwald
Date:     2010-05-04 20:57:59 +0000 (Tue, 04 May 2010)

Log Message:
-----------
casting fixes

Modified Paths:
--------------
    brlcad/trunk/src/adrt/libtie/tie_kdtree.c

Modified: brlcad/trunk/src/adrt/libtie/tie_kdtree.c
===================================================================
--- brlcad/trunk/src/adrt/libtie/tie_kdtree.c   2010-05-04 20:57:35 UTC (rev 
38954)
+++ brlcad/trunk/src/adrt/libtie/tie_kdtree.c   2010-05-04 20:57:59 UTC (rev 
38955)
@@ -528,7 +528,7 @@
 
            for (k = 0; k < slice_num; k++) {
 /*      printf("slice[%d][%d]: %d < %d\n", d, k, slice[d][k], 
(int)(MIN_DENSITY * (tfloat)smax[d])); */
-               if (slice[d][k] < (int)(MIN_DENSITY * (tfloat)smax[d])) {
+               if (slice[d][k] < (unsigned int)(MIN_DENSITY * 
(tfloat)smax[d])) {
                    if (!active) {
                        active = 1;
                        beg = k;
@@ -928,7 +928,7 @@
     VSUB2(delta.v,  tie->max.v,  tie->min.v);
     MATH_MAX3(TIE_PREC, delta.v[0], delta.v[1], delta.v[2]);
 #if TIE_PRECISION == TIE_PRECISION_SINGLE
-    TIE_PREC *= 0.000000001;
+    TIE_PREC *= (float)0.000000001;
 #else
     TIE_PREC *= 0.000000000001;
 #endif


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to