fix format, used is unsigned long 9/head
authorRemi Collet <remi@remirepo.net>
Mon, 21 Sep 2020 13:48:01 +0000 (15:48 +0200)
committerRemi Collet <remi@remirepo.net>
Mon, 21 Sep 2020 13:48:01 +0000 (15:48 +0200)
src/php_raphf_api.c

index 004fd667dc233286d1b2de8f810215eb97755a5f..d71ce36c305ea236c79318e9445857f4fb129bc2 100644 (file)
@@ -624,7 +624,7 @@ static int php_persistent_handle_apply_info_ex(zval *p, int argc,
        zend_hash_key *super_key = va_arg(argv, zend_hash_key *);
        char used[21], free[21];
 
-       slprintf(used, sizeof(used), "%u", list->used);
+       slprintf(used, sizeof(used), "%lu", list->used);
        slprintf(free, sizeof(free), "%d", zend_hash_num_elements(&list->free));
 
        php_info_print_table_row(4, super_key->key->val, key->key->val, used, free);