Fix protobuf's do not check error value.
This commit is contained in:
parent
5e6d740ee7
commit
411d9f0b9c
|
@ -203,6 +203,7 @@ proc getVarintValue*(data: var ProtoBuffer, field: int,
|
|||
let res = getSVarint(data.toOpenArray(), length, value)
|
||||
else:
|
||||
let res = PB.getUVarint(data.toOpenArray(), length, value)
|
||||
if res == VarintStatus.Success:
|
||||
data.offset += length
|
||||
result = length
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue