diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-04 14:08:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-04 14:08:50 +0000 |
commit | 91f9acdfeee3cf4340988193bd1fa6ad1834789f (patch) | |
tree | 45d0978e6c4fdedb24157ee11d86ec33bed3bd2a /time.c | |
parent | e395327e8e1d3250fbd222f72573a948b301f331 (diff) |
* time.c (time_arg): use converted object. [ruby-core:14759]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |