aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-09-29 10:22:31 -0400
committerJack O'Connor <[email protected]>2020-09-29 10:22:31 -0400
commit01fd05a079b276c9165e8224539cb7e1da5a98cc (patch)
treed95908c84b09de72fa8326f0fde85284f2f748b5
parentb54f8ff5ba1b4230e3ebabf183ddd066380be542 (diff)
DUMMY COMMIT: demonstrate breaking CI on big endianbreak_big_endian
-rw-r--r--reference_impl/reference_impl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/reference_impl/reference_impl.rs b/reference_impl/reference_impl.rs
index 2488343..ec4ebca 100644
--- a/reference_impl/reference_impl.rs
+++ b/reference_impl/reference_impl.rs
@@ -126,7 +126,7 @@ fn first_8_words(compression_output: [u32; 16]) -> [u32; 8] {
fn words_from_little_endian_bytes(bytes: &[u8], words: &mut [u32]) {
for (bytes_block, word) in bytes.chunks_exact(4).zip(words.iter_mut()) {
- *word = u32::from_le_bytes(bytes_block.try_into().unwrap());
+ *word = u32::from_ne_bytes(bytes_block.try_into().unwrap());
}
}