diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-04 16:56:27 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-04 16:56:27 +0300 |
| commit | b2451070d0dd09af57e92a7da33cf1043e8df870 (patch) | |
| tree | 806b0425474d6b3912d17f041a9f8f85188ff0ea | |
| parent | 6deec4e7566250d949e2a19c03b347804ae7151a (diff) | |
| download | nimpb-b2451070d0dd09af57e92a7da33cf1043e8df870.tar.gz nimpb-b2451070d0dd09af57e92a7da33cf1043e8df870.zip | |
Really remove the prefix that was supposed to be removed in last commit
| -rw-r--r-- | src/nimpb/nimpb.nim | 4 |
1 files changed, 2 insertions, 2 deletions
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) = |
