[Gridflow-cvs] [svn] commit: r3979 - /trunk/base/number.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Jul 4 16:19:23 EDT 2008


Author: matju
Date: Fri Jul  4 16:19:22 2008
New Revision: 3979

Log:
fix warning about & in comparison (Claude)

Modified:
    trunk/base/number.c

Modified: trunk/base/number.c
==============================================================================
--- trunk/base/number.c (original)
+++ trunk/base/number.c Fri Jul  4 16:19:22 2008
@@ -112,15 +112,15 @@
 
 #ifdef PASS1
 void quick_put_map (long n, int16 *as, int16 b) {
-	if (n&1!=0 && (long)as&4!=0) { *as++=b; n--; }
-	quick_put_map (n>>1, (int32 *)as, (int32)(b<<16)+b);
-	if (n&1!=0) *as++=b;
+	if ((n&1)!=0 && ((long)as&4)!=0) {*as++=b; n--;}
+	quick_put_map(n>>1, (int32 *)as, (int32)(b<<16)+b);
+	if ((n&1)!=0) *as++=b;
 }
 void quick_put_map (long n, uint8 *as, uint8 b) {
-	while (n&3!=0 && (long)as&4!=0) { *as++=b; n--; }
+	while ((n&3)!=0 && ((long)as&4)!=0) {*as++=b; n--;}
 	int32 c=(b<<8)+b; c+=c<<16;
-	quick_put_map (n>>2, (int32 *)as, c);
-	while (n&3!=0) *as++=b;
+	quick_put_map(n>>2, (int32 *)as, c);
+	while ((n&3)!=0) *as++=b;
 }
 #endif
 template <class T> static void quick_put_zip (long n, T *as, T *bs) {



More information about the Gridflow-cvs mailing list