[Gridflow-cvs] [svn] commit: r4118 - /trunk/format/main.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat Nov 15 14:16:00 EST 2008


Author: matju
Date: Sat Nov 15 14:16:00 2008
New Revision: 4118

Log:
use incoming grid type instead of the "type" method to figure out which numbertype to use. (is that ok??)

Modified:
    trunk/format/main.c

Modified: trunk/format/main.c
==============================================================================
--- trunk/format/main.c (original)
+++ trunk/format/main.c Sat Nov 15 14:16:00 2008
@@ -208,7 +208,7 @@
 GRID_INLET(0) {
 	if (!headerless_dim) {
 		strncpy(head.magic,is_le()?"\x7fgrid":"\x7fGRID",5);
-		switch (nt) {
+		switch (in->nt) {
 		case uint8_e: head.type = 9; break;
 		case int16_e: head.type = 16; break;
 		case int32_e: head.type = 32; break;



More information about the Gridflow-cvs mailing list