From 6d9903f3e62dcee870582fa60634eec84fe7b643 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 5 Oct 2024 15:46:10 +0100 Subject: [PATCH] fix build warning for GH-16228 close GH-16250 --- ext/calendar/easter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/calendar/easter.c b/ext/calendar/easter.c index 2832d0bdefe..00df5dcf1d5 100644 --- a/ext/calendar/easter.c +++ b/ext/calendar/easter.c @@ -28,7 +28,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, bool gm) struct tm te; zend_long year, golden, solar, lunar, pfm, dom, tmp, easter, result; zend_long method = CAL_EASTER_DEFAULT; - const zend_long max_year = ZEND_LONG_MAX / 1.25; + const zend_long max_year = (zend_long)(ZEND_LONG_MAX / 5) * 4; bool year_is_null = 1; if (zend_parse_parameters(ZEND_NUM_ARGS(),