pijul nest
guest [sign in]

Formatting L64 as the L64(platform-native integer) instead of L64(little-endian integer)

pmeunier
Feb 10, 2024, 4:42 PM
LOOOIMXRKHTTF3YMITO2ZHJFG7KVQJF2Q3H6KCNDTPUBJZHIHU4AC

Dependencies

  • [2] HMWFIUDS Support for large values + endianness bugs
  • [3] OP6SVMOD Resetting history

Change contents

  • replacement in sanakirja/src/lib.rs at line 145
    [2.99615][2.99615:99666]()
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
    [2.99615]
    [2.99666]
    #[derive(Clone, Copy, PartialEq, Eq, Hash)]
  • edit in sanakirja/src/lib.rs at line 147
    [2.99691]
    [2.99691]
    impl std::fmt::Debug for L64 {
    fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
    write!(fmt, "L64({})", u64::from_le(self.0))
    }
    }
  • replacement in sanakirja/src/lib.rs at line 242
    [2.101608][2.101608:101632]()
    self.0.fmt(fmt)
    [2.101608]
    [2.101632]
    u64::from_le(self.0).fmt(fmt)