summaryrefslogtreecommitdiffstats
path: root/9.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-21 15:53:17 +0200
committerRemi Collet <remi@remirepo.net>2020-09-21 15:53:17 +0200
commit3291ecdb459180bf813b3803e3d885bfee2df17e (patch)
tree79c8c26d03f0cc8177cbee7c0060d124492e9ffb /9.patch
parent7694c88a455e67ffa33ef783e13555f83bb15ca2 (diff)
add minor fix from https://github.com/m6w6/ext-raphf/pull/9
Diffstat (limited to '9.patch')
-rw-r--r--9.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/9.patch b/9.patch
new file mode 100644
index 0000000..762cfc9
--- /dev/null
+++ b/9.patch
@@ -0,0 +1,22 @@
+From d48a944c053084382b2b0a914cb1058cda89d99c Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 21 Sep 2020 15:48:01 +0200
+Subject: [PATCH] fix format, used is unsigned long
+
+---
+ src/php_raphf_api.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/php_raphf_api.c b/src/php_raphf_api.c
+index 004fd66..d71ce36 100644
+--- a/src/php_raphf_api.c
++++ b/src/php_raphf_api.c
+@@ -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);