[Gridflow-cvs] [svn] commit: r6115 - in /trunk/src: classes1.cxx x11.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Aug 15 13:32:23 EDT 2010


Author: matju
Date: Sun Aug 15 13:32:23 2010
New Revision: 6115

Log:
don't use TO

Modified:
    trunk/src/classes1.cxx
    trunk/src/x11.cxx

Modified: trunk/src/classes1.cxx
==============================================================================
--- trunk/src/classes1.cxx (original)
+++ trunk/src/classes1.cxx Sun Aug 15 13:32:23 2010
@@ -364,11 +364,11 @@
 	\decl 0 bang () {t_atom2 a[2] = {0,gensym("#")}; pd_list((t_pd *)bself,&s_list,2,a);}
 	\decl 1 reassign () {put_at=0;}
 	\decl 1 put_at (...) {
-		if (argv[0].a_type==A_LIST) put_at=TO(Grid *,argv[0]);
+		if (argv[0].a_type==A_LIST) put_at=(Grid *)argv[0];
 		else {
 			put_at=new Grid(Dim(argc),int32_e);
 			int32 *v = (int32 *)*put_at;
-			for (int i=0; i<argc; i++) v[i]=TO(int32,argv[i]);
+			for (int i=0; i<argc; i++) v[i]=argv[i];
 		}
 	}
 	\grin 0 int

Modified: trunk/src/x11.cxx
==============================================================================
--- trunk/src/x11.cxx (original)
+++ trunk/src/x11.cxx Sun Aug 15 13:32:23 2010
@@ -173,7 +173,7 @@
 					const char *winspec2 = string(winspec).data();
 					if (strncmp(winspec2,"0x",2)==0) window = strtol(winspec2+2,0,16);
 					else 				 window = atoi(winspec2); // huh?
-				} else window = TO(int32,winspec);
+				} else window = int32(winspec);
 				is_owner = false;
 				sy = sx = pos[0] = pos[1] = 0;
 			}



More information about the Gridflow-cvs mailing list