зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
e395327e8e
Коммит
91f9acdfee
|
@ -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
|
||||
|
|
2
time.c
2
time.c
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче