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

* 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:
akr 2012-07-02 12:26:50 +00:00
parent 5f8dfdd9c7
commit 83eceb2a79
2 changed files with 18 additions and 0 deletions

View file

@ -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
View file

@ -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))) ||