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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Sep 19 15:47:35 EDT 2008


Author: matju
Date: Fri Sep 19 15:47:35 2008
New Revision: 4075

Log:
blood clot in [range]. sorry.

Modified:
    trunk/base/flow_objects.c

Modified: trunk/base/flow_objects.c
==============================================================================
--- trunk/base/flow_objects.c (original)
+++ trunk/base/flow_objects.c Fri Sep 19 15:47:35 2008
@@ -2452,7 +2452,10 @@
 	\decl void _n_float(int i, float f);
 };
 \def 0 list(float f) {_0_float(argc,argv,f);}
-\def 0 float(float f) {for (int i=0; i<nmosusses; i++) if (f<mosusses[i]) {outlet_float(bself->outlets[i],f); return;}}
+\def 0 float(float f) {
+	int i; while (i<nmosusses; i++) if (f<mosusses[i]) break;
+	outlet_float(bself->outlets[i],f);
+}
  // precedence problem in dispatcher... does this problem still exist?
 \def void _n_float(int i, float f) {if (!i) _0_float(argc,argv,f); else mosusses[i-1] = f;}
 \end class {install("range",1,1);}



More information about the Gridflow-cvs mailing list