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 40e565ce9e..223f5de8ae 100644
--- a/time.c
+++ b/time.c
@@ -1193,7 +1193,7 @@ time_utc_offset(time)
#else
struct tm *u, *l;
time_t t;
- int off;
+ long off;
l = &tobj->tm;
t = tobj->tv.tv_sec;
u = gmtime(&t);
@@ -1210,7 +1210,7 @@ time_utc_offset(time)
off = off * 24 + l->tm_hour - u->tm_hour;
off = off * 60 + l->tm_min - u->tm_min;
off = off * 60 + l->tm_sec - u->tm_sec;
- return INT2FIX(off);
+ return LONG2FIX(off);
#endif
}
}