Author: dmacvicar Date: Mon Nov 2 11:00:48 2009 New Revision: 59259 URL: http://svn.opensuse.org/viewcvs/yast?rev=59259&view=rev Log: fix conversion from ruby hashes to ycp maps Modified: trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc Modified: trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/src/ruby/Y2RubyType... ============================================================================== --- trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc (original) +++ trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc Mon Nov 2 11:00:48 2009 @@ -66,7 +66,7 @@ int n = NUM2LONG(rb_funcall(keys, rb_intern("size"), 0)); for ( int i=0; i<n; ++i) { - VALUE rkey = rb_funcall(keys, rb_intern("at"), 1, i); + VALUE rkey = rb_funcall(keys, rb_intern("at"), 1, INT2NUM(i)); YCPValue ykey = rbvalue_2_ycpvalue(rkey); YCPValue yvalue = rbvalue_2_ycpvalue( rb_funcall(value, rb_intern("[]"), 1, rkey) ); map.add(ykey, yvalue); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org