summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
346*/ 346*/
347static int safe_year(const Year year) 347static int safe_year(const Year year)
348{ 348{
349 int safe_year; 349 int safe_year= (int)year;
350 Year year_cycle; 350 Year year_cycle;
351 351
352 if( year >= MIN_SAFE_YEAR && year <= MAX_SAFE_YEAR ) { 352 if( year >= MIN_SAFE_YEAR && year <= MAX_SAFE_YEAR ) {
353 return (int)year; 353 return safe_year;
354 } 354 }
355 355
356 year_cycle = year + cycle_offset(year); 356 year_cycle = year + cycle_offset(year);