mirror of
https://github.com/fmtlib/fmt.git
synced 2026-07-31 00:36:58 +08:00
Formatting an integer with ':c' used the magnitude (abs_value) and never range-checked, so negatives were mangled and out-of-range values silently truncated. Copy the value as a character and report an error when it is out of range, treating all character types as unsigned for portability. |
||
|---|---|---|
| .. | ||
| fmt | ||