summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/time64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time64.c b/src/time64.c
index 371f2f9..8c08caf 100644
--- a/src/time64.c
+++ b/src/time64.c
@@ -346,11 +346,11 @@ static Year cycle_offset(Year year)
*/
static int safe_year(const Year year)
{
- int safe_year;
+ int safe_year= (int)year;
Year year_cycle;
if( year >= MIN_SAFE_YEAR && year <= MAX_SAFE_YEAR ) {
- return (int)year;
+ return safe_year;
}
year_cycle = year + cycle_offset(year);