From 095ee28fd93f759ae65cc810387780906148b161 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 21 Jun 2018 00:51:56 +0000 Subject: [PATCH] runtime: fix size values for bytes and bytearray RPCs. Fixes #1076. --- artiq/firmware/libproto_artiq/rpc_proto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/libproto_artiq/rpc_proto.rs b/artiq/firmware/libproto_artiq/rpc_proto.rs index 6f9fc2042..8c39251f7 100644 --- a/artiq/firmware/libproto_artiq/rpc_proto.rs +++ b/artiq/firmware/libproto_artiq/rpc_proto.rs @@ -256,8 +256,8 @@ mod tag { Tag::Int64 => 8, Tag::Float64 => 8, Tag::String => 4, - Tag::Bytes => 4, - Tag::ByteArray => 4, + Tag::Bytes => 8, + Tag::ByteArray => 8, Tag::Tuple(it, arity) => { let mut size = 0; for _ in 0..arity {