translator: the 2 GiB interpreter test reads the run's buffers as bytes
This commit is contained in:
1 parent
cc13014f41
commit
8ce4fb2b52
1 file changed
+1
-1
@@ -131,7 +131,7 @@ fn accesses_past_2_gib_land_at_their_own_words() {
|
||||
});
|
||||
let word = |w: u32| {
|
||||
let (b, o) = at(w);
|
||||
u32::from_le_bytes(got.buffers[b].bytes[o..o + 4].try_into().expect("a word"))
|
||||
u32::from_le_bytes(got.buffers[b][o..o + 4].try_into().expect("a word"))
|
||||
};
|
||||
let loaded: Vec<u32> = (0..THREADS).map(word).collect();
|
||||
let want: Vec<u32> = (0..THREADS).map(|t| 0x5000_0000 | t).collect();
|
||||
|
||||
Reference in new issue
Block a user