diff --git a/core/src/format.rs b/core/src/format.rs index d02fce0..4bc408c 100644 --- a/core/src/format.rs +++ b/core/src/format.rs @@ -1,13 +1,13 @@ /// Transforms a value prior to formatting it. #[derive(Copy, Clone, Debug, PartialEq, Eq)] -#[repr(u8)] +#[repr(i8)] pub enum ConversionFlag { /// No conversion - None = 0, // CPython uses -1 but not pleasure for us + None = -1, // CPython uses -1 /// Converts by calling `str()`. - Str = b's', + Str = b's' as i8, /// Converts by calling `ascii()`. - Ascii = b'a', + Ascii = b'a' as i8, /// Converts by calling `repr()`. - Repr = b'r', + Repr = b'r' as i8, }