Merge pull request #9 from remicollet/issue-ul
authorMichael Wallner <mike@php.net>
Mon, 21 Sep 2020 15:10:21 +0000 (17:10 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 15:10:21 +0000 (17:10 +0200)
fix format, used is unsigned long

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);