Skip to content

Commit f664e86

Browse files
byroothsbt
authored andcommitted
[ruby/json] Use RSTRING_END
ruby/json@dd9c46c805
1 parent e4b54b0 commit f664e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/parser/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ static VALUE cParser_parse(JSON_ParserConfig *config, VALUE Vsource)
13441344
JSON_ParserState _state = {
13451345
.config = config,
13461346
.cursor = RSTRING_PTR(Vsource),
1347-
.end = RSTRING_PTR(Vsource) + RSTRING_LEN(Vsource),
1347+
.end = RSTRING_END(Vsource),
13481348
.stack = &stack,
13491349
};
13501350
JSON_ParserState *state = &_state;

0 commit comments

Comments
 (0)