summaryrefslogtreecommitdiff
path: root/shared/src/store.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-28 15:25:50 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-28 15:25:50 +0100
commit58e3531cd2316e9c73b01221d68834592ad6a2ff (patch)
tree081b774c8d611d96d88b8589b92490dcc987f89a /shared/src/store.rs
parent3331150162e34471bf0294bdb61a1a748cb94ee5 (diff)
downloadweareserver-58e3531cd2316e9c73b01221d68834592ad6a2ff.tar
weareserver-58e3531cd2316e9c73b01221d68834592ad6a2ff.tar.bz2
weareserver-58e3531cd2316e9c73b01221d68834592ad6a2ff.tar.zst
Little endian, tangent space handedness,
Diffstat (limited to 'shared/src/store.rs')
-rw-r--r--shared/src/store.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/src/store.rs b/shared/src/store.rs
index b0dbe45..3db6bac 100644
--- a/shared/src/store.rs
+++ b/shared/src/store.rs
@@ -161,9 +161,9 @@ pub fn resource_hash(x: &[u8]) -> [u8; 32] {
fn fs_cache_path(path: &Path, res: Resource) -> PathBuf {
path.join(format!(
"{:016x}{:016x}{:016x}{:016x}",
- u64::from_be_bytes(res.0[0..8].try_into().unwrap()),
- u64::from_be_bytes(res.0[8..16].try_into().unwrap()),
- u64::from_be_bytes(res.0[16..24].try_into().unwrap()),
- u64::from_be_bytes(res.0[24..32].try_into().unwrap()),
+ u64::from_le_bytes(res.0[0..8].try_into().unwrap()),
+ u64::from_le_bytes(res.0[8..16].try_into().unwrap()),
+ u64::from_le_bytes(res.0[16..24].try_into().unwrap()),
+ u64::from_le_bytes(res.0[24..32].try_into().unwrap()),
))
}