mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
fix: fix: correct snprintf format specifier for long value
This commit is contained in:
committed by
Michael Grunder
parent
f5ed17048b
commit
fe67b8cb33
+1
-1
@@ -2921,7 +2921,7 @@ static inline zval *coerce_hash_field(zval *zv, zval *aux) {
|
||||
is_numeric_string(Z_STRVAL_P(zv),
|
||||
Z_STRLEN_P(zv), &lv, NULL, 0) == IS_LONG))
|
||||
{
|
||||
len = snprintf(buf, sizeof(buf), "%ld", lv);
|
||||
len = snprintf(buf, sizeof(buf), "%lld", lv);
|
||||
if (len == Z_STRLEN_P(zv) && redis_strncmp(Z_STRVAL_P(zv), buf, len) == 0) {
|
||||
ZVAL_LONG(aux, lv);
|
||||
return aux;
|
||||
|
||||
Reference in New Issue
Block a user