Skip to content

Commit

Permalink
Merge pull request #109 from EmbarkStudios/fix-32-bit-hash
Browse files Browse the repository at this point in the history
Fix hash calculation on 32-bit targets
  • Loading branch information
kornelski authored Jun 14, 2023
2 parents 1b1a9bc + 8066188 commit 1fe05d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dirs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) fn url_to_local_dir(url: &str) -> Result<(String, String), Error> {
}

#[allow(deprecated)]
fn hash_u64(url: &str, registry_kind: usize) -> u64 {
fn hash_u64(url: &str, registry_kind: u64) -> u64 {
use std::hash::{Hash, Hasher, SipHasher};

let mut hasher = SipHasher::new_with_keys(0, 0);
Expand Down

0 comments on commit 1fe05d4

Please sign in to comment.