mirror of https://github.com/m-labs/artiq.git
firmware/rpc_proto: Fix typo breaking receiving of arrays
This was introduced in 8740ec3dd5
.
This commit is contained in:
parent
8740ec3dd5
commit
dbbe8e8ed4
|
@ -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.
|
// Allocate backing storage for elements; deserialize them.
|
||||||
let elt_tag = it.clone().next().expect("truncated tag");
|
let elt_tag = it.clone().next().expect("truncated tag");
|
||||||
*buffer = alloc(elt_tag.size() * total_len)?;
|
*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) => {
|
Tag::Range(it) => {
|
||||||
|
|
Loading…
Reference in New Issue