[Scummvm-cvs-logs] SF.net SVN: scummvm: [32925] residual/trunk/engine/tinygl/zline.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sun Jul 6 16:13:38 CEST 2008


Revision: 32925
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32925&view=rev
Author:   aquadran
Date:     2008-07-06 07:13:38 -0700 (Sun, 06 Jul 2008)

Log Message:
-----------
fixed warning

Modified Paths:
--------------
    residual/trunk/engine/tinygl/zline.cpp

Modified: residual/trunk/engine/tinygl/zline.cpp
===================================================================
--- residual/trunk/engine/tinygl/zline.cpp	2008-07-06 12:04:19 UTC (rev 32924)
+++ residual/trunk/engine/tinygl/zline.cpp	2008-07-06 14:13:38 UTC (rev 32925)
@@ -8,13 +8,13 @@
 	unsigned short *pz;
 	unsigned long *pz_2;
 	PIXEL *pp;
-	int zz;
+	unsigned int zz;
 
 	pz = zb->zbuf + (p->y * zb->xsize + p->x);
 	pz_2 = zb->zbuf2 + (p->y * zb->xsize + p->x);
 	pp = (PIXEL *)((char *) zb->pbuf + zb->linesize * p->y + p->x * PSZB);
 	zz = p->z >> ZB_POINT_Z_FRAC_BITS;
-	if ((ZCMP(zz, *pz)) && (ZCMP(p->z, *pz_2)) ) {
+	if ((ZCMP(zz, *pz)) && (ZCMP((unsigned int)p->z, *pz_2)) ) {
 		*pp = RGB_TO_PIXEL(p->r, p->g, p->b);
 		*pz_2 = p->z;
     }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list