From 52a10661a582f82e7db3b279ded4d009f3f1dd62 Mon Sep 17 00:00:00 2001 From: tomohiko okazaki Date: Sun, 16 Jun 2019 23:55:36 +0900 Subject: support nim 0.20.0 --- nimpb/nimpb.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimpb/nimpb.nim b/nimpb/nimpb.nim index 260b379..3ba3b70 100644 --- a/nimpb/nimpb.nim +++ b/nimpb/nimpb.nim @@ -153,7 +153,7 @@ template fieldNumber*(tag: Tag): int = proc protoReadByte(stream: Stream): byte = ## Read a byte from a stream. - result = readInt8(stream).byte + result = cast[byte](readInt8(stream)) proc protoWriteByte(stream: Stream, b: byte) = ## Write a byte to a stream. -- cgit v1.2.3