From dbbe8e8ed4f852e623775b7bd3aec818cdd03376 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Mon, 14 Nov 2022 22:49:45 +0000 Subject: [PATCH] firmware/rpc_proto: Fix typo breaking receiving of arrays This was introduced in 8740ec3dd52d85084237797881ea137492bfe070. --- artiq/firmware/libproto_artiq/rpc_proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libproto_artiq/rpc_proto.rs b/artiq/firmware/libproto_artiq/rpc_proto.rs index 983d932b8..6b0a914a8 100644 --- a/artiq/firmware/libproto_artiq/rpc_proto.rs +++ b/artiq/firmware/libproto_artiq/rpc_proto.rs @@ -170,7 +170,7 @@ unsafe fn recv_value(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) => {