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

* time.c (init_leap_second_info): checks the result of gmtime to

suppress warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-22 15:09:50 +00:00
parent a60b9f9190
commit 9f66faa374
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 23 00:10:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (init_leap_second_info): checks the result of gmtime to
suppress warnings.
Wed Jul 22 22:23:24 2009 Yusuke Endoh <mame@tsg.ne.jp>
* vm_core.h (struct rb_iseq_t): add a new field line_no. This field

1
time.c
View file

@ -522,6 +522,7 @@ init_leap_second_info()
now = time(NULL);
gmtime(&now);
tm = gmtime_with_leapsecond(&now, &result);
if (!tm) return;
this_year = tm->tm_year;
max = ~(time_t)0;