1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

Fix PartialOrd for ServerTick and DemoTick

This commit is contained in:
unknown 2023-11-05 19:33:14 +00:00
commit e78a13790b

View file

@ -164,7 +164,7 @@ impl PartialEq<u32> for ServerTick {
impl PartialOrd<u32> for ServerTick {
fn partial_cmp(&self, other: &u32) -> Option<Ordering> {
other.partial_cmp(&self.0)
self.0.partial_cmp(other)
}
}
@ -257,7 +257,7 @@ impl PartialEq<u32> for DemoTick {
impl PartialOrd<u32> for DemoTick {
fn partial_cmp(&self, other: &u32) -> Option<Ordering> {
other.partial_cmp(&self.0)
self.0.partial_cmp(other)
}
}