fix two long/zend_long mismatches
authorMichael Wallner <mike@php.net>
Wed, 20 Jan 2016 09:15:24 +0000 (10:15 +0100)
committerMichael Wallner <mike@php.net>
Wed, 20 Jan 2016 09:15:24 +0000 (10:15 +0100)
src/php_pqres.c

index f2ddf98029497a7d9314a1f82bde1d4a009f8cac..68645a19c9902d65f94ca52468c632abad36d9bc 100644 (file)
@@ -145,7 +145,7 @@ zval *php_pqres_typed_zval(php_pqres_t *res, Oid typ, zval *zv)
                        goto noconversion;
                }
                {
-                       long lval;
+                       zend_long lval;
                        double dval;
 
                        switch (is_numeric_str_function(str, &lval, &dval)) {
@@ -561,7 +561,7 @@ typedef struct php_pqres_col {
 
 static ZEND_RESULT_CODE column_nn(php_pqres_object_t *obj, zval *zcol, php_pqres_col_t *col)
 {
-       long index = -1;
+       zend_long index = -1;
        char *name = NULL;
 
        if (!zcol) {