[Gridflow-cvs] [svn] commit: r6401 - /trunk/src/classes2.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Oct 6 20:05:35 EDT 2010


Author: matju
Date: Wed Oct  6 20:05:35 2010
New Revision: 6401

Log:
fix new [listfind] bug

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Wed Oct  6 20:05:35 2010
@@ -267,7 +267,7 @@
 	vector<t_atom2> r;
 	\constructor (...) {_1_list(argc,argv);}
 	\decl 0 list(t_atom a) {
-		for (size_t i; i<r.size(); i++) if (r[i]==a) {out[0](i); return;}
+		for (size_t i=0; i<r.size(); i++) if (r[i]==a) {out[0](i); return;}
 		out[0](-1);
 	}
 	\decl 1 list(...) {r.resize(argc); for (int i=0; i<argc; i++) r[i]=argv[i];}



More information about the Gridflow-cvs mailing list