зеркало из https://github.com/github/ruby.git
* time.c (timew_out_of_timet_range): specialization for
SIZEOF_TIME_T == SIZEOF_INT64_T. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5f8dfdd9c7
Коммит
83eceb2a79
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 2 21:25:55 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* time.c (timew_out_of_timet_range): specialization for
|
||||
SIZEOF_TIME_T == SIZEOF_INT64_T.
|
||||
|
||||
Mon Jul 2 17:06:32 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* class.c (rb_include_module): include modules after the origin.
|
||||
|
|
13
time.c
13
time.c
|
@ -1740,6 +1740,19 @@ timew_out_of_timet_range(wideval_t timew)
|
|||
return 1;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#if SIZEOF_TIME_T == SIZEOF_INT64_T
|
||||
if (FIXWV_P(timew)) {
|
||||
wideint_t t = FIXWV2WINT(timew);
|
||||
if (~(time_t)0 <= 0) {
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
if (t < 0)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
timexv = w2v(timew);
|
||||
if (lt(timexv, mul(INT2FIX(TIME_SCALE), TIMET2NUM(TIMET_MIN))) ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче