Skip to content

Commit e4dcd2e

Browse files
committed
zend_objects_API.c: use uint32_t type instead of int type
1 parent 66e4ba1 commit e4dcd2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Zend/zend_objects_API.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,19 @@ ZEND_API void ZEND_FASTCALL zend_objects_store_free_object_storage(zend_objects_
127127
/* Store objects API */
128128
static ZEND_COLD zend_never_inline void ZEND_FASTCALL zend_objects_store_put_cold(zend_object *object)
129129
{
130-
int handle;
131130
uint32_t new_size = 2 * EG(objects_store).size;
132131

133132
EG(objects_store).object_buckets = (zend_object **) erealloc(EG(objects_store).object_buckets, new_size * sizeof(zend_object*));
134133
/* Assign size after realloc, in case it fails */
135134
EG(objects_store).size = new_size;
136-
handle = EG(objects_store).top++;
135+
uint32_t handle = EG(objects_store).top++;
137136
object->handle = handle;
138137
EG(objects_store).object_buckets[handle] = object;
139138
}
140139

141140
ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object)
142141
{
143-
int handle;
142+
uint32_t handle;
144143

145144
/* When in shutdown sequence - do not reuse previously freed handles, to make sure
146145
* the dtors for newly created objects are called in zend_objects_store_call_destructors() loop

0 commit comments

Comments
 (0)