Skip to content

Commit 6d9903f

Browse files
committed
fix build warning for GH-16228
close GH-16250
1 parent 4b855eb commit 6d9903f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/calendar/easter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, bool gm)
2828
struct tm te;
2929
zend_long year, golden, solar, lunar, pfm, dom, tmp, easter, result;
3030
zend_long method = CAL_EASTER_DEFAULT;
31-
const zend_long max_year = ZEND_LONG_MAX / 1.25;
31+
const zend_long max_year = (zend_long)(ZEND_LONG_MAX / 5) * 4;
3232
bool year_is_null = 1;
3333

3434
if (zend_parse_parameters(ZEND_NUM_ARGS(),

0 commit comments

Comments
 (0)