Skip to content

Commit bded0dc

Browse files
SpriteOvOmmstick
authored andcommitted
Allow LENGTH of _filled functions equal to the buffer length
1 parent 13625cc commit bded0dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/numtoa_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ macro_rules! impl_numtoa_const_for_base_on_type {
130130
num: $type_name,
131131
fill: u8,
132132
) -> AsciiNumber<{ Self::$required_space_constant_name }> {
133-
const { assert!(LENGTH < { Self::$required_space_constant_name }) }
133+
const { assert!(LENGTH <= { Self::$required_space_constant_name }) }
134134
let mut string = [fill; Self::$required_space_constant_name];
135135
let start = Self::$required_space_constant_name
136136
- const_max(LENGTH, $core_function_name(num, $base, &mut string).len());

0 commit comments

Comments
 (0)