Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# this should match the nightly version in tari-project/tari
# only used for cargo fmt settings, repo should always compile on stable too
[toolchain]
channel = "nightly-2022-11-03"
channel = "stable"
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ impl RandomXDataset {
0 => Err(RandomXError::Other("Dataset item count was 0".to_string())),
x => {
// This weirdness brought to you by c_ulong being different on Windows and Linux
Ok(u32::try_from(x)?)
#[cfg(target_os = "windows")]
return Ok(x);
#[cfg(target_os = "linux")]
return Ok(u32::try_from(x)?);
},
}
}
Expand Down