Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-05-06 19:46:43 +0300
committerGitHub <noreply@github.com>2020-05-06 19:46:43 +0300
commitb9b383f49939484dcddf1a5edefdb9d753baa7f8 (patch)
tree7d1e1e397757b8a67f0d29b1844f791617bf0505 /cluster_library.c
parent201a97599953a9621bb8eb02dc8d5f08d16499a3 (diff)
fix [-Wformat=] warning on 32-bit (#1750)
Use the portable `ZEND_LONG_FORMAT` family instead of C format specifiers
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 191947c5..b21a6875 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -552,7 +552,7 @@ unsigned short cluster_hash_key_zval(zval *z_key) {
klen = Z_STRLEN_P(z_key);
break;
case IS_LONG:
- klen = snprintf(buf,sizeof(buf),"%ld",Z_LVAL_P(z_key));
+ klen = snprintf(buf,sizeof(buf),ZEND_LONG_FMT,Z_LVAL_P(z_key));
kptr = (const char *)buf;
break;
case IS_DOUBLE: