diff --git a/DataStructures/NNGrid.h b/DataStructures/NNGrid.h index 830c63bfe..d4b523652 100644 --- a/DataStructures/NNGrid.h +++ b/DataStructures/NNGrid.h @@ -484,7 +484,7 @@ private: assert( x<=1.0 && x >= 0); assert( y<=1.0 && y >= 0); - unsigned line = 1073741824.0*y; + unsigned line = (32768 * (32768-1))*y; line = line - (line % 32768); assert(line % 32768 == 0); unsigned column = 32768.*x;