diff --git a/vcg/space/index/grid_util.h b/vcg/space/index/grid_util.h index 08efbd11..f2b84fef 100644 --- a/vcg/space/index/grid_util.h +++ b/vcg/space/index/grid_util.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.12 2008/02/19 12:43:01 callieri +in BestDim(...) changed int -> _int64 to cope with programs with a very large cell number (like plyMC) + Revision 1.11 2008/02/04 19:18:44 ganovelli typo corrected @@ -66,6 +69,12 @@ Removed BestDim function from the grid_static_ptr class and moved to a indipende #include #include + +#ifndef WIN32 +#define __int64 long long +#define __cdecl +#endif + namespace vcg { /** BasicGrid @@ -176,7 +185,7 @@ public: assert(size[2]>=0.0); - __int64 ncell = __int64(elems*GFactor); // Calcolo numero di voxel + __int64 ncell = (__int64)(elems*GFactor); // Calcolo numero di voxel if(ncell