Skip to content

Commit 5b87d52

Browse files
committed
Fixed typo
1 parent ed59370 commit 5b87d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/spl_observer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static HashTable *spl_object_storage_get_gc(zval *obj, zval ***table, int *n TSR
373373
spl_SplObjectStorageElement *element;
374374
HashPosition pos;
375375

376-
if (intern->storage.nNumOfElements > intern->gcdata_num) {
376+
if (intern->storage.nNumOfElements * 2 > intern->gcdata_num) {
377377
intern->gcdata_num = intern->storage.nNumOfElements * 2;
378378
intern->gcdata = (zval**)erealloc(intern->gcdata, sizeof(zval*) * intern->gcdata_num);
379379
}

0 commit comments

Comments
 (0)