diff options
Diffstat (limited to 'strftime.c')
-rw-r--r-- | strftime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strftime.c b/strftime.c index b602173ea2..4e7a2d1909 100644 --- a/strftime.c +++ b/strftime.c @@ -515,7 +515,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept time_t now; time(&now); utc = *gmtime(&now); - off = (now - mktime(&utc)) / 60; + off = (long)((now - mktime(&utc)) / 60); } #endif #endif /* !HAVE_VAR_TIMEZONE */ |