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:
@@ -204,7 +204,7 @@ struct _zend_executor_globals {
|
||||
|
||||
zend_execute_data *current_observed_frame;
|
||||
|
||||
int ticks_count;
|
||||
uint32_t ticks_count;
|
||||
|
||||
zend_long precision;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
4
Zend/zend_vm_execute.h
generated
4
Zend/zend_vm_execute.h
generated
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user