Correct the value size in the debug statement, otherwise it overflows on 32-bits systems.

This commit is contained in:
Andrew Wood
2025-10-05 21:02:27 +01:00
parent b1797c51e6
commit a83a549de5
+1 -1
View File
@@ -160,7 +160,7 @@ off_t pv_getnum_size(const char *str, bool decimal_units)
fractional_part = fractional_part / fractional_divisor;
integral_part += fractional_part;
debug("%s [%s] = %ld", str, decimal_units ? "decimal" : "binary", integral_part);
debug("%s [%s] = %lld", str, decimal_units ? "decimal" : "binary", (long long) integral_part);
return integral_part;
}