@@ -99,10 +99,10 @@ typedef enum {
99
99
} tidy_base_nodetypes ;
100
100
101
101
struct _PHPTidyDoc {
102
- TidyDoc doc ;
103
- TidyBuffer * errbuf ;
104
- unsigned int ref_count ;
105
- unsigned int initialized : 1 ;
102
+ TidyDoc doc ;
103
+ TidyBuffer * errbuf ;
104
+ uint32_t ref_count ;
105
+ bool initialized ;
106
106
};
107
107
108
108
struct _PHPTidyObj {
@@ -412,7 +412,7 @@ static void tidy_object_free_storage(zend_object *object)
412
412
if (intern -> ptdoc ) {
413
413
intern -> ptdoc -> ref_count -- ;
414
414
415
- if (intern -> ptdoc -> ref_count < = 0 ) {
415
+ if (intern -> ptdoc -> ref_count = = 0 ) {
416
416
tidyBufFree (intern -> ptdoc -> errbuf );
417
417
efree (intern -> ptdoc -> errbuf );
418
418
tidyRelease (intern -> ptdoc -> doc );
@@ -437,7 +437,7 @@ static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_ha
437
437
intern -> ptdoc = emalloc (sizeof (PHPTidyDoc ));
438
438
intern -> ptdoc -> doc = tidyCreate ();
439
439
intern -> ptdoc -> ref_count = 1 ;
440
- intern -> ptdoc -> initialized = 0 ;
440
+ intern -> ptdoc -> initialized = false ;
441
441
intern -> ptdoc -> errbuf = emalloc (sizeof (TidyBuffer ));
442
442
tidyBufInit (intern -> ptdoc -> errbuf );
443
443
@@ -814,7 +814,7 @@ static int php_tidy_parse_string(PHPTidyObj *obj, const char *string, uint32_t l
814
814
}
815
815
}
816
816
817
- obj -> ptdoc -> initialized = 1 ;
817
+ obj -> ptdoc -> initialized = true ;
818
818
819
819
tidyBufInit (& buf );
820
820
tidyBufAttach (& buf , (byte * ) string , len );
0 commit comments