Update dependencies

This commit is contained in:
Omar Roth 2020-04-09 12:17:42 -05:00
parent 041d0000b7
commit e9df06c262
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,6 @@ targets:
protodec:
main: src/protodec.cr
crystal: 0.31.1
crystal: 0.34.0
license: GPLv3

View File

@ -213,6 +213,9 @@ module Protodec
when "bytes"
VarLong.to_io(io, value.size.to_i64)
value.as_a.each { |byte| io.write_byte byte.as_i.to_u8 }
else # "string"
VarLong.to_io(io, value.to_s.bytesize.to_i64)
io.print value.to_s
end
end
else