Skip to content

Commit 26aea0e

Browse files
committed
Tweak sizes of some dom_nnodemap_object fields
We don't have to pack the bools, and the cached index would better be a zend_long so we don't get implicit narrowing.
1 parent 8526de8 commit 26aea0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/dom/obj_map.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ typedef struct php_dom_obj_map_handler {
3131
typedef struct dom_nnodemap_object {
3232
dom_object *baseobj;
3333
zval baseobj_zv;
34-
int cached_length;
34+
zend_long cached_length;
3535
xmlHashTable *ht;
3636
xmlChar *local;
3737
zend_string *local_lower;
@@ -41,8 +41,8 @@ typedef struct dom_nnodemap_object {
4141
zend_long cached_obj_index;
4242
xmlDictPtr dict;
4343
const php_dom_obj_map_handler *handler;
44-
bool release_local : 1;
45-
bool release_ns : 1;
44+
bool release_local;
45+
bool release_ns;
4646
} dom_nnodemap_object;
4747

4848
void php_dom_create_obj_map(dom_object *basenode, dom_object *intern, xmlHashTablePtr ht, zend_string *local, zend_string *ns, const php_dom_obj_map_handler *handler);

0 commit comments

Comments
 (0)