[Gridflow-cvs] [svn] commit: r6342 - /trunk/src/gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Sep 24 12:46:53 EDT 2010


Author: matju
Date: Fri Sep 24 12:46:51 2010
New Revision: 6342

Log:
print A_VAR properly

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Fri Sep 24 12:46:51 2010
@@ -207,7 +207,7 @@
 		case A_NULL: case A_CANT: case A_OPEN: case A_CLOSE:
 			   self << "\\\\a(" << atomtype_to_s(a.a_type)                                                << ")"; break;
 		case A_VAR: case A_OP: case A_OP1:
-			   self << "\\\\a(" << atomtype_to_s(a.a_type) << " " << std::hex << a.a_symbol   << std::dec << ")"; break;
+			   self << "\\\\a(" << atomtype_to_s(a.a_type) << " " << std::hex << char(a.a_index>>8) << int(a.a_index&255) << std::dec << ")"; break;
 		default:   self << "\\\\a(" << atomtype_to_s(a.a_type) << " " << std::hex << a.a_gpointer << std::dec << ")"; break;
 	}
 	return self;



More information about the Gridflow-cvs mailing list