mirror of
https://github.com/urbit/ares.git
synced 2024-11-29 22:56:28 +03:00
[ares] fix atom initialization bug
This commit is contained in:
parent
697180606b
commit
336214cd9b
@ -208,7 +208,7 @@ impl IndirectAtom {
|
|||||||
data: *const u64,
|
data: *const u64,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let (mut indirect, buffer) = Self::new_raw_mut(allocator, size);
|
let (mut indirect, buffer) = Self::new_raw_mut(allocator, size);
|
||||||
ptr::copy_nonoverlapping(data, buffer.add(2), size);
|
ptr::copy_nonoverlapping(data, buffer, size);
|
||||||
*(indirect.normalize())
|
*(indirect.normalize())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user