Permalink
Browse files

Fix handling of binary values

  • Loading branch information...
1 parent 324bb1d commit c64540abb478ef9ad2129813284ade2c6bd33072 @olabini committed Jul 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/ruby/src/java/org/yecht/ruby/YechtYAML.java
@@ -288,7 +288,7 @@ public static boolean orgHandler(IRubyObject self, org.yecht.Node n, IRubyObject
obj = RubyString.newString(runtime, ds.ptr.buffer, ds.ptr.start, ds.len);
obj.callMethod(ctx, "tr!", new IRubyObject[]{runtime.newString("\n\t "), runtime.newString("")});
IRubyObject arr = obj.callMethod(ctx, "unpack", runtime.newString("m"));
- obj = ((RubyArray)arr).unshift();
+ obj = ((RubyArray)arr).shift(ctx);
} else if(type_id.equals("bool#yes")) {
obj = runtime.getTrue();
} else if(type_id.equals("bool#no")) {

0 comments on commit c64540a

Please sign in to comment.