[Gridflow-cvs] [svn] commit: r4232 - /trunk/base/flow_objects.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat Oct 17 17:57:48 EDT 2009


Author: matju
Date: Sat Oct 17 17:57:47 2009
New Revision: 4232

Log:
fixed [#grade] bug on 64-bit and/or numbertypes other than i, etc.

Modified:
    trunk/base/flow_objects.c

Modified: trunk/base/flow_objects.c
==============================================================================
--- trunk/base/flow_objects.c (original)
+++ trunk/base/flow_objects.c Sat Oct 17 17:57:47 2009
@@ -1147,7 +1147,7 @@
 	T  bar[m];
 	for (; n; n-=m,data+=m) {
 		for (int i=0; i<m; i++) foo[i] = &data[i];
-		qsort(foo,m,sizeof(T),(comparator_t)GradeFunction<T>::comparator);
+		qsort(foo,m,sizeof(T *),(comparator_t)GradeFunction<T>::comparator);
 		for (int i=0; i<m; i++) bar[i] = foo[i]-(T *)data;
 		out->send(m,bar);
 	}



More information about the Gridflow-cvs mailing list