[Gridflow-cvs] [svn] commit: r5483 - /trunk/src/gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 19 18:43:52 EDT 2010


Author: pboivin
Date: Mon Apr 19 18:43:50 2010
New Revision: 5483

Log:
unsigned >>

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Mon Apr 19 18:43:50 2010
@@ -426,8 +426,8 @@
 // (R,G,B,?) -> B:8,G:8,R:8,0:8
 static void pack3_bgrn8888(BitPacking *self, long n, uint8 *in, uint8 *out) {TRACE
 /* NTIMES( out[2]=in[0]; out[1]=in[1]; out[0]=in[2]; out+=4; in+=4; ) */
-	int32 *i32 = (int32 *)in;
-	int32 *o32 = (int32 *)out;
+	uint32 *i32 = (uint32 *)in;
+	uint32 *o32 = (uint32 *)out;
 	while (n>=4) {
 		o32[0] = ((i32[0]&0xff)<<16) | (i32[0]&0xff00) | ((i32[0]>>16)&0xff);
 		o32[1] = ((i32[1]&0xff)<<16) | (i32[1]&0xff00) | ((i32[1]>>16)&0xff);



More information about the Gridflow-cvs mailing list