diff options
| -rw-r--r-- | nimpb/nimpb.nim | 2 |
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. |
