[Gridflow-cvs] [svn] commit: r3795 - /trunk/base/grid.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Jun 4 16:00:29 EDT 2008


Author: matju
Date: Wed Jun  4 16:00:29 2008
New Revision: 3795

Log:
rien

Modified:
    trunk/base/grid.c

Modified: trunk/base/grid.c
==============================================================================
--- trunk/base/grid.c (original)
+++ trunk/base/grid.c Wed Jun  4 16:00:29 2008
@@ -324,7 +324,7 @@
 }
 
 template <class T, class S>
-static void convert_number_type(int n, T * out, S * in) {
+static void convert_number_type(int n, T *out, S *in) {
 	for (int i=0; i<n; i++) out[i]=(T)in[i];
 }
 
@@ -339,8 +339,7 @@
 		int bs = MAX_PACKET_SIZE;
 #define FOO(T) { \
 	T data2[bs]; \
-	for (;n>=bs;n-=bs,data+=bs) { \
-		convert_number_type(bs,data2,data); send(bs,data2);} \
+	for (;n>=bs;n-=bs,data+=bs) {convert_number_type(bs,data2,data); send(bs,data2);} \
 	convert_number_type(n,data2,data); \
 	send(n,data2); }
 		TYPESWITCH(nt,FOO,)



More information about the Gridflow-cvs mailing list