aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomohiko okazaki <tomohiko.okazaki@xcompass.com>2019-06-16 23:55:36 +0900
committertomohiko okazaki <tomohiko.okazaki@xcompass.com>2019-06-16 23:55:36 +0900
commit52a10661a582f82e7db3b279ded4d009f3f1dd62 (patch)
treefb94beeee9c96c0f7cef0f7152271547e8c35374
parent2fef457af5e8f2a804eb4e6293e5d5ada968cf7c (diff)
downloadnimpb-52a10661a582f82e7db3b279ded4d009f3f1dd62.tar.gz
nimpb-52a10661a582f82e7db3b279ded4d009f3f1dd62.zip
support nim 0.20.0
-rw-r--r--nimpb/nimpb.nim2
1 files changed, 1 insertions, 1 deletions
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.