Fix incompatible pointer types issue-pointers 52/head
authorRemi Collet <remi@remirepo.net>
Mon, 29 Jan 2024 16:05:04 +0000 (17:05 +0100)
committerRemi Collet <remi@php.net>
Mon, 29 Jan 2024 16:05:04 +0000 (17:05 +0100)
src/php_pqres.c

index e3986c529121650e200e3869273689ad1e8017b6..802fcf4a85484b506ed1c87cc58126869b7704df 100644 (file)
@@ -1172,7 +1172,7 @@ static PHP_METHOD(pqres, count) {
        zend_restore_error_handling(&zeh);
 
        if (SUCCESS == rv) {
-               long count;
+               zend_long count;
 
                if (SUCCESS != php_pqres_count_elements_ex(Z_OBJ_P(getThis()), &count)) {
                        throw_exce(EX_UNINITIALIZED, "pq\\Result not initialized");