summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-12 07:42:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-12 07:42:35 +0000
commit3a7020854d43c4d29ca5cd9013e3af139f378548 (patch)
tree2a73f7f17fa97d74f5580248e39f39765747d573 /time.c
parent2322a131272f705139fb1e6bbcf1d85a0205e8b0 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/time.c b/time.c
index 6cd6a0d..0e2fa0f 100644
--- a/time.c
+++ b/time.c
@@ -469,7 +469,7 @@ time_cmp(time1, time2)
}
}
- if (rb_obj_is_instance_of(time2, rb_cTime)) {
+ if (rb_obj_is_kind_of(time2, rb_cTime)) {
GetTimeval(time2, tobj2);
if (tobj1->tv.tv_sec == tobj2->tv.tv_sec) {
if (tobj1->tv.tv_usec == tobj2->tv.tv_usec) return INT2FIX(0);
@@ -492,7 +492,7 @@ time_eql(time1, time2)
struct time_object *tobj1, *tobj2;
GetTimeval(time1, tobj1);
- if (rb_obj_is_instance_of(time2, rb_cTime)) {
+ if (rb_obj_is_kind_of(time2, rb_cTime)) {
GetTimeval(time2, tobj2);
if (tobj1->tv.tv_sec == tobj2->tv.tv_sec) {
if (tobj1->tv.tv_usec == tobj2->tv.tv_usec) return Qtrue;
@@ -676,7 +676,7 @@ time_minus(time1, time2)
double f;
GetTimeval(time1, tobj);
- if (rb_obj_is_instance_of(time2, rb_cTime)) {
+ if (rb_obj_is_kind_of(time2, rb_cTime)) {
struct time_object *tobj2;
GetTimeval(time2, tobj2);
@@ -945,7 +945,7 @@ static VALUE
time_s_times(obj)
VALUE obj;
{
-#ifdef HAVE_TIMES
+#if defined(HAVE_TIMES) && !defined(__CHECKER__)
#ifndef HZ
# ifdef CLK_TCK
# define HZ CLK_TCK