1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* time.c (time_arg): use converted object. [ruby-core:14759]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-01-04 14:08:50 +00:00
parent 555d072892
commit 636089ddbe
2 changed files with 5 additions and 1 deletions

View file

@ -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 01:20:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32.h: only VC6 needs extern "C++" for math.h. [ruby-talk:285660]

2
time.c
View file

@ -349,7 +349,7 @@ time_arg(argc, argv, tm, usec)
tm->tm_mon = -1;
for (i=0; i<12; i++) {
if (RSTRING(s)->len == 3 &&
strcasecmp(months[i], RSTRING(v[1])->ptr) == 0) {
strcasecmp(months[i], RSTRING(s)->ptr) == 0) {
tm->tm_mon = i;
break;
}