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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Apr 16 18:59:39 EDT 2008


Author: matju
Date: Wed Apr 16 18:59:39 2008
New Revision: 3574

Log:
remove warning

Modified:
    trunk/base/grid.c

Modified: trunk/base/grid.c
==============================================================================
--- trunk/base/grid.c (original)
+++ trunk/base/grid.c Wed Apr 16 18:59:39 2008
@@ -160,7 +160,7 @@
 	} else if (x.a_type==A_FLOAT) {
 		init(new Dim(),int32_e);
 		CHECK_ALIGN2(this->data,nt);
-		((int32 *)*this)[0] = x.a_float;
+		((int32 *)*this)[0] = (int32)x.a_float;
 	} else {
 		rb_funcall(
 		EVAL("proc{|x| raise \"can't convert to grid: #{x.inspect}\"}"),



More information about the Gridflow-cvs mailing list