Skip to content

Commit

Permalink
Pass Int rather than UInt as lengths to core parser hook
Browse files Browse the repository at this point in the history
This is more consistent with the way we're likely call it from the Julia
side via Meta.parse().
  • Loading branch information
c42f committed Jun 17, 2023
1 parent 8caba95 commit 964f0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,8 +1348,8 @@ jl_value_t *jl_parse(const char *text, size_t text_len, jl_value_t *filename,
jl_svecset(args[1], 0, jl_box_uint8pointer((uint8_t*)text));
jl_svecset(args[1], 1, jl_box_long(text_len));
args[2] = filename;
args[3] = jl_box_ulong(lineno);
args[4] = jl_box_ulong(offset);
args[3] = jl_box_long(lineno);
args[4] = jl_box_long(offset);
args[5] = options;
jl_task_t *ct = jl_current_task;
size_t last_age = ct->world_age;
Expand Down

0 comments on commit 964f0d6

Please sign in to comment.