Skip to content

Zend: Convert certain fields to uint32_t #19479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 14, 2025

These basically always assign to uint32_t or be used as such anyway, so might as well make them this type properly so we don't need to think about C's implicit sign conversion rules

@@ -23,6 +23,8 @@
* php zend_vm_gen.php
*/

#include <stdint.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is ignored (it doesn't end up in zend_vm_execute.h). I would recommend to add this include to zend_vm_execute.skl instead. (stdint.h is probably already included where zend_vm_execute.h is included, but this is still useful when looking at this file independently.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I didn't even realize this header got added, will add to the skeleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants