<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -228,10 +228,10 @@ public class Parser extends RubyObject {
             data = byteList.unsafeBytes();
         }
 
-        private RaiseException unexpectedToken(int start, int end) {
+        private RaiseException unexpectedToken(int absStart, int absEnd) {
             RubyString msg =
                 runtime.newString(&quot;unexpected token at '&quot;)
-                       .cat(data, byteList.begin() + start, end - start)
+                       .cat(data, absStart, absEnd - absStart)
                        .cat((byte)'\'');
             return Utils.newException(runtime, Utils.M_PARSER_ERROR, msg);
         }</diff>
      <filename>src/json/ext/Parser.java</filename>
    </modified>
    <modified>
      <diff>@@ -226,10 +226,10 @@ public class Parser extends RubyObject {
             data = byteList.unsafeBytes();
         }
 
-        private RaiseException unexpectedToken(int start, int end) {
+        private RaiseException unexpectedToken(int absStart, int absEnd) {
             RubyString msg =
                 runtime.newString(&quot;unexpected token at '&quot;)
-                       .cat(data, byteList.begin() + start, end - start)
+                       .cat(data, absStart, absEnd - absStart)
                        .cat((byte)'\'');
             return Utils.newException(runtime, Utils.M_PARSER_ERROR, msg);
         }</diff>
      <filename>src/json/ext/Parser.rl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>62cec7eef11c380b9691d23e8be0000eabf68b1f</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Luz</name>
    <email>dev@mernen.com</email>
  </author>
  <url>http://github.com/mernen/json-jruby/commit/146caaf75f123ad350fc6e90afcfc9c066aff7e1</url>
  <id>146caaf75f123ad350fc6e90afcfc9c066aff7e1</id>
  <committed-date>2009-05-12T14:01:36-07:00</committed-date>
  <authored-date>2009-05-12T14:01:36-07:00</authored-date>
  <message>Fixed offset calculation for the unexpectedToken helper method.</message>
  <tree>06aeab9677af3f19b929b7e01b8d937d6633b6be</tree>
  <committer>
    <name>Daniel Luz</name>
    <email>dev@mernen.com</email>
  </committer>
</commit>
