Correct the value size in the debug statement, otherwise it overflows on 32-bits systems.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user