[Gridflow-cvs] [svn] commit: r6186 - /trunk/src/source_filter.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Aug 17 20:57:21 EDT 2010


Author: matju
Date: Tue Aug 17 20:57:21 2010
New Revision: 6186

Log:
allow cast in default value of method

Modified:
    trunk/src/source_filter.rb

Modified: trunk/src/source_filter.rb
==============================================================================
--- trunk/src/source_filter.rb (original)
+++ trunk/src/source_filter.rb Tue Aug 17 20:57:21 2010
@@ -147,7 +147,7 @@
 	if m.maxargs==-1 then Out.print "argc,argv" end
 	m.args.each_with_index{|arg,i|
 		Out.print "," if i>0 or m.maxargs==-1
-		Out.print "argc<#{i+1}?#{arg.default}:" if arg.default
+		Out.print "argc<#{i+1}?(#{arg.type})#{arg.default}:" if arg.default
 		Out.print "TO(#{arg.type},argv[#{i}])"
 	}
 	Out.print ");DEF_OUT;}"



More information about the Gridflow-cvs mailing list