summaryrefslogtreecommitdiffstats
path: root/posixtz.c
diff options
context:
space:
mode:
Diffstat (limited to 'posixtz.c')
-rw-r--r--posixtz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posixtz.c b/posixtz.c
index cddcb3e..972ca31 100644
--- a/posixtz.c
+++ b/posixtz.c
@@ -36,7 +36,7 @@ char *posix_tz(const char *filename)
if (r != TZ_BUFLEN
|| strncmp(buf, "TZif", 4) != 0
|| (unsigned char)buf[4] < 2
- || lseek(fd, -TZ_BUFLEN, SEEK_END) < 0
+ || lseek(fd, (off_t) -TZ_BUFLEN, SEEK_END) < 0
)
goto ERROR;