Skip to content

Commit

Permalink
Fix an argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 17, 2024
1 parent 3b23b45 commit 6e4bfb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions time.c
Expand Up @@ -2538,7 +2538,7 @@ parse_int(const char *ptr, const char *end, const char **endp, size_t *ndigits,
}

static VALUE
time_init_parse(rb_execution_context_t *ec, VALUE klass, VALUE str, VALUE zone, VALUE precision)
time_init_parse(rb_execution_context_t *ec, VALUE time, VALUE str, VALUE zone, VALUE precision)
{
if (NIL_P(str = rb_check_string_type(str))) return Qnil;
if (!rb_enc_str_asciicompat_p(str)) {
Expand Down Expand Up @@ -2660,7 +2660,7 @@ time_init_parse(rb_execution_context_t *ec, VALUE klass, VALUE str, VALUE zone,
.sec = (sec < 0) ? 0 : sec,
.subsecx = NIL_P(subsec) ? INT2FIX(0) : subsec,
};
return time_init_vtm(klass, vtm, zone);
return time_init_vtm(time, vtm, zone);
}

static void
Expand Down

0 comments on commit 6e4bfb3

Please sign in to comment.