From 3485b76d8f373fe1d88d7b453b465aab936ad518 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 9 Dec 2008 11:36:34 +0000 Subject: [PATCH] Added explicit casts --- vcg/complex/trimesh/point_sampling.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vcg/complex/trimesh/point_sampling.h b/vcg/complex/trimesh/point_sampling.h index 006dbac6..8e4c227f 100644 --- a/vcg/complex/trimesh/point_sampling.h +++ b/vcg/complex/trimesh/point_sampling.h @@ -534,14 +534,14 @@ static void SingleFaceRaster(FaceType &f, VertexSampler &ps, const Point2v2[0]) bbox.min[0]=v2[0]; - else if(bbox.max[0]v2[1]) bbox.min[1]=v2[1]; - else if(bbox.max[1]int(v2[0])) bbox.min[0]=int(v2[0]); + else if(bbox.max[0]int(v2[1])) bbox.min[1]=int(v2[1]); + else if(bbox.max[1] d10 = v1 - v0;