diff src/video/e_sqrt.h @ 1345:7f32b9bede06

Fixes for Visual C++ 6.0
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 18:36:54 +0000
parents 450721ad5436
children 7a610f25c12f
line wrap: on
line diff
--- a/src/video/e_sqrt.h	Tue Feb 07 17:49:40 2006 +0000
+++ b/src/video/e_sqrt.h	Tue Feb 07 18:36:54 2006 +0000
@@ -202,7 +202,7 @@
 	    t  = s0;
 	    if((t<ix0)||((t==ix0)&&(t1<=ix1))) {
 		s1  = t1+r;
-		if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
+		if(((int32_t)(t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
 		ix0 -= t;
 		if (ix1 < t1) ix0 -= 1;
 		ix1 -= t1;