Skip to content

Commit

Permalink
Merge pull request #1706 from eregon/fixes-for-truffleruby
Browse files Browse the repository at this point in the history
Fixes for truffleruby
  • Loading branch information
kddnewton authored Oct 26, 2023
2 parents fddcf71 + 5055fc0 commit 9ce986a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -8248,7 +8248,7 @@ parser_lex(pm_parser_t *parser) {

// If we haven't found an escape yet, then this buffer will be
// unallocated since we can refer directly to the source string.
pm_token_buffer_t token_buffer = { 0 };
pm_token_buffer_t token_buffer = { { 0 }, 0 };

while (breakpoint != NULL) {
// If we hit a null byte, skip directly past it.
Expand Down Expand Up @@ -8424,7 +8424,7 @@ parser_lex(pm_parser_t *parser) {
// characters.
const uint8_t *breakpoints = lex_mode->as.regexp.breakpoints;
const uint8_t *breakpoint = pm_strpbrk(parser, parser->current.end, breakpoints, parser->end - parser->current.end);
pm_token_buffer_t token_buffer = { 0 };
pm_token_buffer_t token_buffer = { { 0 }, 0 };

while (breakpoint != NULL) {
// If we hit a null byte, skip directly past it.
Expand Down Expand Up @@ -8613,7 +8613,7 @@ parser_lex(pm_parser_t *parser) {

// If we haven't found an escape yet, then this buffer will be
// unallocated since we can refer directly to the source string.
pm_token_buffer_t token_buffer = { 0 };
pm_token_buffer_t token_buffer = { { 0 }, 0 };

while (breakpoint != NULL) {
// If we hit the incrementor, then we'll increment then nesting and
Expand Down Expand Up @@ -8874,7 +8874,7 @@ parser_lex(pm_parser_t *parser) {
}

const uint8_t *breakpoint = pm_strpbrk(parser, parser->current.end, breakpoints, parser->end - parser->current.end);
pm_token_buffer_t token_buffer = { 0 };
pm_token_buffer_t token_buffer = { { 0 }, 0 };
bool was_escaped_newline = false;

while (breakpoint != NULL) {
Expand Down

0 comments on commit 9ce986a

Please sign in to comment.