diff options
Diffstat (limited to 'ext/date/date_strftime.c')
-rw-r--r-- | ext/date/date_strftime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c index 3ac20c87f5..f30f6103ca 100644 --- a/ext/date/date_strftime.c +++ b/ext/date/date_strftime.c @@ -491,9 +491,9 @@ date_strftime_wo_timespec(char *s, size_t maxsize, const char *format, off = NUM2LONG(rb_funcall(vtm->utc_offset, rb_intern("round"), 0)); - aoff = off; + aoff = (int)off; if (aoff < 0) - aoff = -off; + aoff = (int)-off; if ((aoff / 3600) < 10) hl = 1; |