Fix incompatible pointer types
[m6w6/ext-pq] / 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");