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

Merge pull request #15 from bitinha/master

Fix PartialOrd for ServerTick and DemoTick
This commit is contained in:
Robin Appelman 2023-11-11 21:10:50 +01:00 committed by GitHub
commit f595843eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)
}
}