fix build
This commit is contained in:
parent
a9c9c0c551
commit
6430e11a57
@ -2140,7 +2140,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix,
|
|||||||
if (specs.alt)
|
if (specs.alt)
|
||||||
prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
|
prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
|
||||||
num_digits = count_digits<4>(value);
|
num_digits = count_digits<4>(value);
|
||||||
format_uint<4, Char>(digits, value, num_digits, upper);
|
format_uint<4>(digits, value, num_digits, upper);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case presentation_type::bin_lower:
|
case presentation_type::bin_lower:
|
||||||
@ -2149,7 +2149,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix,
|
|||||||
if (specs.alt)
|
if (specs.alt)
|
||||||
prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
|
prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
|
||||||
num_digits = count_digits<1>(value);
|
num_digits = count_digits<1>(value);
|
||||||
format_uint<1, Char>(digits, value, num_digits);
|
format_uint<1>(digits, value, num_digits);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case presentation_type::oct: {
|
case presentation_type::oct: {
|
||||||
@ -2158,7 +2158,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix,
|
|||||||
// is not greater than the number of digits.
|
// is not greater than the number of digits.
|
||||||
if (specs.alt && specs.precision <= num_digits && value != 0)
|
if (specs.alt && specs.precision <= num_digits && value != 0)
|
||||||
prefix_append(prefix, '0');
|
prefix_append(prefix, '0');
|
||||||
format_uint<3, Char>(digits, value, num_digits);
|
format_uint<3>(digits, value, num_digits);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case presentation_type::chr:
|
case presentation_type::chr:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user