diff --git a/format.h b/format.h index c02736ab..322c0bf8 100644 --- a/format.h +++ b/format.h @@ -484,7 +484,7 @@ extern const char DIGITS[]; // Formats a decimal unsigned integer value writing into buffer. template -void format_decimal(Char *buffer, UInt value, unsigned num_digits) { +inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) { --num_digits; while (value >= 100) { // Integer division is slow so do it for a group of two digits instead