forked from M-Labs/artiq
firmware/rpc_proto: Fix typo breaking receiving of arrays
This was introduced in 8740ec3dd5
.
This commit is contained in:
parent
d422de387e
commit
60a2ff3799
@ -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
Block a user