mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-31 02:55:15 +00:00
Use templates to reduce the redundant number-lexing functions (#1963)
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ size_t FormatSpec::parseSpec(char const *spec) {
|
||||
padZero = true;
|
||||
}
|
||||
// <width>
|
||||
if (isDigit(spec[i])) {
|
||||
if (isDigit<10>(spec[i])) {
|
||||
width = parseSpecNumber();
|
||||
}
|
||||
// <frac>
|
||||
|
||||
Reference in New Issue
Block a user