[Gridflow-cvs] [svn] commit: r3364 - /trunk/base/grid.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Mar 30 18:21:58 EDT 2008


Author: matju
Date: Sun Mar 30 18:21:58 2008
New Revision: 3364

Log:
forgot to check for T_STRING in op lookup

Modified:
    trunk/base/grid.h

Modified: trunk/base/grid.h
==============================================================================
--- trunk/base/grid.h (original)
+++ trunk/base/grid.h Sun Mar 30 18:21:58 2008
@@ -581,6 +581,7 @@
 #ifdef USE_RUBY
 #ifndef IS_BRIDGE
 static Numop *convert(Ruby x, Numop **bogus) {
+	if (TYPE(x)!=T_STRING) x=rb_funcall(x,SI(to_s),0);
 	string k = string(rb_str_ptr(x));
 	if (op_dict.find(k)==op_dict.end()) {
 		if (vop_dict.find(k)==vop_dict.end()) RAISE("expected two-input-operator, not %s", rb_str_ptr(rb_funcall(x,SI(inspect),0)));



More information about the Gridflow-cvs mailing list