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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Jun 2 22:00:26 EDT 2009


Author: matju
Date: Tue Jun  2 22:00:25 2009
New Revision: 4189

Log:
fixed warnings discovered because desiredata uses gcc's __attribute__.

Modified:
    trunk/base/grid.c

Modified: trunk/base/grid.c
==============================================================================
--- trunk/base/grid.c (original)
+++ trunk/base/grid.c Tue Jun  2 22:00:25 2009
@@ -135,7 +135,7 @@
 	if (!n) return; // no data
 	long d = dex + bufi;
 	if (d+n > dim->prod()) {
-		post("grid input overflow: %d of %d from [%s] to [%s]", d+n, dim->prod(), ARGS(sender->parent), 0);
+		post("grid input overflow: %ld of %ld from [%s] to [%s]", d+n, long(dim->prod()), ARGS(sender->parent), ARGS(parent));
 		n = dim->prod() - d;
 		if (n<=0) return;
 	}
@@ -166,7 +166,8 @@
 
 void GridInlet::finish() {
 	if (!dim) RAISE("inlet not busy");
-	if (dim->prod() != dex) post("%s: incomplete grid: %d of %d from [%s] to [%s]",ARGS(parent),dex,dim->prod(),ARGS(sender->parent));
+	if (dim->prod() != dex) post("%s: incomplete grid: %ld of %ld from [%s] to [%s]",
+	    ARGS(parent),dex,long(dim->prod()),ARGS(sender->parent),ARGS(parent));
 #define FOO(T) try {gh->flow(this,dex,-2,(T *)0);} CATCH_IT;
 	TYPESWITCH(sender->nt,FOO,)
 #undef FOO



More information about the Gridflow-cvs mailing list