2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

runtime: fix size values for bytes and bytearray RPCs.

Fixes #1076.
This commit is contained in:
whitequark 2018-06-21 00:51:56 +00:00
parent 9260cdb2e8
commit 095ee28fd9

View File

@ -256,8 +256,8 @@ mod tag {
Tag::Int64 => 8, Tag::Int64 => 8,
Tag::Float64 => 8, Tag::Float64 => 8,
Tag::String => 4, Tag::String => 4,
Tag::Bytes => 4, Tag::Bytes => 8,
Tag::ByteArray => 4, Tag::ByteArray => 8,
Tag::Tuple(it, arity) => { Tag::Tuple(it, arity) => {
let mut size = 0; let mut size = 0;
for _ in 0..arity { for _ in 0..arity {