diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | time.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Jan 4 23:08:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * time.c (time_arg): use converted object. [ruby-core:14759] + Fri Jan 4 16:24:58 2008 Tanaka Akira <akr@fsij.org> * ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use @@ -419,7 +419,7 @@ time_arg(int argc, VALUE *argv, struct tm *tm, long *nsec) tm->tm_mon = -1; for (i=0; i<12; i++) { if (RSTRING_LEN(s) == 3 && - STRCASECMP(months[i], RSTRING_PTR(v[1])) == 0) { + STRCASECMP(months[i], RSTRING_PTR(s)) == 0) { tm->tm_mon = i; break; } |