1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Zend: use type uint32_t for ticks_count global

This commit is contained in:
Gina Peter Banyard
2025-10-03 16:06:59 +01:00
parent d0ad286ec8
commit f5e782ec2d
3 changed files with 4 additions and 4 deletions

View File

@@ -204,7 +204,7 @@ struct _zend_executor_globals {
zend_execute_data *current_observed_frame;
int ticks_count;
uint32_t ticks_count;
zend_long precision;

View File

@@ -8006,7 +8006,7 @@ ZEND_VM_HANDLER(105, ZEND_TICKS, ANY, ANY, NUM)
{
USE_OPLINE
if ((uint32_t)++EG(ticks_count) >= opline->extended_value) {
if (++EG(ticks_count) >= opline->extended_value) {
EG(ticks_count) = 0;
if (zend_ticks_function) {
SAVE_OPLINE();

View File

@@ -3278,7 +3278,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_OPCODE_HANDLER_FUNC_CCONV ZEND_TICKS_SPEC_HA
{
USE_OPLINE
if ((uint32_t)++EG(ticks_count) >= opline->extended_value) {
if (++EG(ticks_count) >= opline->extended_value) {
EG(ticks_count) = 0;
if (zend_ticks_function) {
SAVE_OPLINE();
@@ -58798,7 +58798,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_OPCODE_HANDLER_CCONV ZEND_TICKS_SPEC_TAILCAL
{
USE_OPLINE
if ((uint32_t)++EG(ticks_count) >= opline->extended_value) {
if (++EG(ticks_count) >= opline->extended_value) {
EG(ticks_count) = 0;
if (zend_ticks_function) {
SAVE_OPLINE();