-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/tidy: Various small refactoring #18774
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
Conversation
On certain platform an unsigned int is 64bits, which is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides David's remark: LGTM
b390440
to
25b1908
Compare
@@ -412,7 +408,7 @@ static void tidy_object_free_storage(zend_object *object) | |||
if (intern->ptdoc) { | |||
intern->ptdoc->ref_count--; | |||
|
|||
if (intern->ptdoc->ref_count <= 0) { | |||
if (intern->ptdoc->ref_count == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch, seems a long forgotten change to me
Commits should be reviewed individually