fix: fix: correct snprintf format specifier for long value

This commit is contained in:
arshidkv12
2026-05-01 14:43:19 +05:30
committed by Michael Grunder
parent f5ed17048b
commit fe67b8cb33
+1 -1
View File
@@ -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;