summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time.c b/time.c
index c5147a47a8..408a8608a8 100644
--- a/time.c
+++ b/time.c
@@ -445,10 +445,10 @@ time_coerce(time1, time2)
double d = RFLOAT(time2)->value;
unsigned int i = (unsigned int) d;
- return time_new_internal(i, (int)(d - (double)i)*1e6);
+ return assoc_new(time_new(i, (int)((d - (double)i)*1e6)),time1);
}
- return time_new(CLASS_OF(time1), NUM2INT(time2), 0);
+ return assoc_new(time_new(NUM2INT(time2), 0), time1);
}
static VALUE