Skip to content

Commit f5e782e

Browse files
committed
Zend: use type uint32_t for ticks_count global
1 parent d0ad286 commit f5e782e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Zend/zend_globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct _zend_executor_globals {
204204

205205
zend_execute_data *current_observed_frame;
206206

207-
int ticks_count;
207+
uint32_t ticks_count;
208208

209209
zend_long precision;
210210

Zend/zend_vm_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8006,7 +8006,7 @@ ZEND_VM_HANDLER(105, ZEND_TICKS, ANY, ANY, NUM)
80068006
{
80078007
USE_OPLINE
80088008

8009-
if ((uint32_t)++EG(ticks_count) >= opline->extended_value) {
8009+
if (++EG(ticks_count) >= opline->extended_value) {
80108010
EG(ticks_count) = 0;
80118011
if (zend_ticks_function) {
80128012
SAVE_OPLINE();

Zend/zend_vm_execute.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)