oh wow this has been wrong this entire time
This commit is contained in:
parent
f7cf6cd349
commit
03507df187
@ -336,8 +336,8 @@ impl std::cmp::Ord for BankItemDetail {
|
|||||||
self_bytes.copy_from_slice(&self.as_client_bytes()[0..4]);
|
self_bytes.copy_from_slice(&self.as_client_bytes()[0..4]);
|
||||||
other_bytes.copy_from_slice(&other.as_client_bytes()[0..4]);
|
other_bytes.copy_from_slice(&other.as_client_bytes()[0..4]);
|
||||||
|
|
||||||
let self_value = u32::from_le_bytes(self_bytes);
|
let self_value = u32::from_be_bytes(self_bytes);
|
||||||
let other_value = u32::from_le_bytes(other_bytes);
|
let other_value = u32::from_be_bytes(other_bytes);
|
||||||
|
|
||||||
self_value.cmp(&other_value)
|
self_value.cmp(&other_value)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user