minor fix for log ambiguous call
authorYanhuaSun <sun51@illinois.edu>
Mon, 28 Oct 2013 21:46:43 +0000 (16:46 -0500)
committerYanhuaSun <sun51@illinois.edu>
Mon, 28 Oct 2013 21:46:43 +0000 (16:46 -0500)
src/util/hilbert.C

index 9aaea54e28eea0785416634fbea966c52811159e..fbbfd466a29ed388b3da7558391d1a810b1087f1 100644 (file)
@@ -89,7 +89,7 @@ static vector<int> unpack_coords(const vector<int> &coords, int dim) {
         if(coords[i] > biggest)
             biggest = coords[i];
     }
-    int nChunks = max(1, int( ceil( log( biggest + 1)/log(2.0f) ) ) );
+    int nChunks = max(1, int( ceil( log( (double)biggest + 1)/log(2.0f) ) ) );
     return transpose_bits( coords, nChunks );
 }