Skip to content

Commit

Permalink
Update src/gf.c
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Apr 18, 2023
1 parent 3dfd4e3 commit a12c4f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ static size_t get_max_varargs(
if (m->max_varargs != UINT8_MAX)
max_varargs = m->max_varargs;
else if (kwmt != NULL && kwmt != jl_type_type_mt && kwmt != jl_nonfunction_mt && kwmt != jl_kwcall_mt) {
if (may_increase != NULL)
*may_increase = 1; // `max_args` can increase as new methods are inserted
*may_increase = 1; // `max_args` can increase as new methods are inserted

max_varargs = jl_atomic_load_relaxed(&kwmt->max_args) + 2;
if (mt == jl_kwcall_mt)
Expand Down

0 comments on commit a12c4f9

Please sign in to comment.