Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > c947edabba3573be016c1c443affe23b > files > 1

yafray-0.0.8-3mdv2007.0.src.rpm

--- yafray-0.0.8/src/loader/render.cc.x86_64	2005-06-29 23:56:40.000000000 +0200
+++ yafray-0.0.8/src/loader/render.cc	2006-06-01 21:24:17.000000000 +0200
@@ -721,11 +721,11 @@
 	}
 	for(vector<triangle_t>::iterator i=faces.begin();i!=faces.end();++i)
 	{
-		long int n=(int)((*i).a);
+	        long int n=(long int)((*i).a);
 		if((n>=(long int)mesh->points->points.size()) || (n<0))
 			{ WARNING<<"Point "<<n<<" out of bounds in object\n"; n=0; }
 		(*i).a=&(mesh->points->points)[n];
-		n=(int)((*i).b);
+		n=(long int)((*i).b);
 		if((n>=(long int)mesh->points->points.size()) || (n<0))
 			{ WARNING<<"Point "<<n<<" out of bounds in object\n"; n=0; }
 		(*i).b=&(mesh->points->points)[n];