Skip to content

Commit

Permalink
Use RSTRING_END
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 16, 2025
1 parent 9948599 commit dd9c46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/json/ext/parser/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ static VALUE cParser_parse(JSON_ParserConfig *config, VALUE Vsource)
JSON_ParserState _state = {
.config = config,
.cursor = RSTRING_PTR(Vsource),
.end = RSTRING_PTR(Vsource) + RSTRING_LEN(Vsource),
.end = RSTRING_END(Vsource),
.stack = &stack,
};
JSON_ParserState *state = &_state;
Expand Down

0 comments on commit dd9c46c

Please sign in to comment.