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

* time.c (time_mload): don't clear tm_mday.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-03-11 12:23:41 +00:00
parent 976c01b404
commit d1bc6cc720
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Mar 11 21:23:06 2009 Tanaka Akira <akr@fsij.org>
* time.c (time_mload): don't clear tm_mday.
Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol

2
time.c
View file

@ -2316,7 +2316,7 @@ time_mload(VALUE time, VALUE str)
tm.tm_hour = p & 0x1f; tm.tm_hour = p & 0x1f;
tm.tm_min = (s >> 26) & 0x3f; tm.tm_min = (s >> 26) & 0x3f;
tm.tm_sec = (s >> 20) & 0x3f; tm.tm_sec = (s >> 20) & 0x3f;
tm.tm_yday = tm.tm_mday = tm.tm_wday = 0; tm.tm_yday = tm.tm_wday = 0;
tm.tm_isdst = 0; tm.tm_isdst = 0;
sec = make_time_t(&tm, Qtrue); sec = make_time_t(&tm, Qtrue);