summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-02-10 00:58:29 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-02-10 00:58:29 +0000
commit8eec68f3ff95989c8fd1d405d473731a433110d6 (patch)
tree56ea5db707dbad4c9aa03e2dc0808efafcc65e40 /lib/libc
parentc8d479f89cb6cadb0e38629c2dbddd019baa54ab (diff)
matthew suggests a double cast so sf mortgages work right. :)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/time/difftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/difftime.c b/lib/libc/time/difftime.c
index 1cb246b34c7..88b8024b82d 100644
--- a/lib/libc/time/difftime.c
+++ b/lib/libc/time/difftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: difftime.c,v 1.10 2015/02/09 08:36:53 tedu Exp $ */
+/* $OpenBSD: difftime.c,v 1.11 2015/02/10 00:58:28 tedu Exp $ */
/* This file is placed in the public domain by Ted Unangst. */
#include "private.h"
@@ -6,5 +6,5 @@
double
difftime(time_t time1, time_t time0)
{
- return time1 - time0;
+ return time1 - (double)time0;
}