From b2451070d0dd09af57e92a7da33cf1043e8df870 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 4 Apr 2018 16:56:27 +0300 Subject: Really remove the prefix that was supposed to be removed in last commit --- src/nimpb/nimpb.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nimpb/nimpb.nim b/src/nimpb/nimpb.nim index d15bfc7..8156e64 100644 --- a/src/nimpb/nimpb.nim +++ b/src/nimpb/nimpb.nim @@ -174,10 +174,10 @@ proc zigzagDecode*(n: uint64): int64 = template makeTag*(fieldNumber: int, wireType: WireType): Tag = ((fieldNumber shl 3).uint32 or wireType.uint32).Tag -template getTagWireType*(tag: Tag): WireType = +template wireType*(tag: Tag): WireType = (tag.uint32 and WireTypeMask).WireType -template getTagFieldNumber*(tag: Tag): int = +template fieldNumber*(tag: Tag): int = (tag.uint32 shr 3).int proc writeTag*(stream: ProtobufStream, tag: Tag) = -- cgit v1.2.3