summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/date/date_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index 251d025b12..ad9bc29a86 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -2378,7 +2378,7 @@ offset_to_sec(VALUE vof, int *rof)
n = FIX2LONG(vs);
if (n < -DAY_IN_SECONDS || n > DAY_IN_SECONDS)
return 0;
- *rof = n;
+ *rof = (int)n;
return 1;
}
}