diff --git a/Src/MultiGridOctreeData.WeightedSamples.inl b/Src/MultiGridOctreeData.WeightedSamples.inl index ce3b46f..57b9b4c 100644 --- a/Src/MultiGridOctreeData.WeightedSamples.inl +++ b/Src/MultiGridOctreeData.WeightedSamples.inl @@ -328,7 +328,7 @@ void Octree< Real >::_MultiSplatPointData( const SparseNodeData< Real , WeightDe TreeOctNode* temp = _spaceRoot; while( _Depth( temp )<=depth ) { - _SplatPointData( temp , position , _v * Real( pow( 1<<_Depth( temp ) , dim ) ) , dataInfo , dataKey ); + _SplatPointData( temp , position , _v * Real( pow( static_cast(1<<_Depth( temp )) , static_cast(dim) ) ) , dataInfo , dataKey ); if( _Depth( temp )children ) temp->initChildren();