summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 53b60e16cf..ba3557da9a 100644
--- a/time.c
+++ b/time.c
@@ -865,7 +865,7 @@ time_minus(time1, time2)
sec--;
usec += 1000000;
}
- time2 = rb_time_new(sec, usec);
+ time2 = time_new_internal(rb_obj_class(time1), sec, usec);
if (tobj->gmt) {
GetTimeval(time2, tobj);
tobj->gmt = 1;