Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Jun 8, 2024
1 parent 036be24 commit 880b6ab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ext/oj/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1387,16 +1387,16 @@ static VALUE load(VALUE self) {

p->start(p);
while (true) {
rb_funcall(p->reader, oj_readpartial_id, 2, INT2NUM(16385), rbuf);
rb_funcall(p->reader, oj_readpartial_id, 2, INT2NUM(16385), rbuf);
if (0 < RSTRING_LEN(rbuf)) {
parse(p, (byte *)StringValuePtr(rbuf));
}
if (Qtrue == rb_funcall(p->reader, oj_eofq_id, 0)) {
if (0 < p->depth) {
parse_error(p, "parse error, not closed");
}
break;
}
if (Qtrue == rb_funcall(p->reader, oj_eofq_id, 0)) {
if (0 < p->depth) {
parse_error(p, "parse error, not closed");
}
break;
}
}
return Qtrue;
}
Expand Down

0 comments on commit 880b6ab

Please sign in to comment.