forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

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 {