From 3e7cdaa5d7f033b75dccca464670dc5895f46e56 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/rpc_proto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/libproto/rpc_proto.rs b/artiq/firmware/libproto/rpc_proto.rs index 8ff7693a9..2c040467c 100644 --- a/artiq/firmware/libproto/rpc_proto.rs +++ b/artiq/firmware/libproto/rpc_proto.rs @@ -243,8 +243,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 {