2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 16:06:30 +08:00

firmware/rpc_proto: Fix typo breaking receiving of arrays

This was introduced in 8740ec3dd5.
This commit is contained in:
David Nadlinger 2022-11-14 22:49:45 +00:00 committed by Sebastien Bourdeauducq
parent d422de387e
commit 60a2ff3799

View File

@ -170,7 +170,7 @@ unsafe fn recv_value<R, E>(reader: &mut R, tag: Tag, data: &mut *mut (),
// Allocate backing storage for elements; deserialize them.
let elt_tag = it.clone().next().expect("truncated tag");
*buffer = alloc(elt_tag.size() * total_len)?;
recv_elements(reader, tag, total_len, *buffer, alloc)
recv_elements(reader, elt_tag, total_len, *buffer, alloc)
})
}
Tag::Range(it) => {