mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 17:31:34 +00:00
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
This commit is contained in:
@ -219,6 +219,9 @@ func ReadVarint(r io.Reader, n *int64, err *error) int {
|
||||
return 0
|
||||
}
|
||||
if size == 0 {
|
||||
if negate {
|
||||
setFirstErr(err, errors.New("Varint does not allow negative zero"))
|
||||
}
|
||||
return 0
|
||||
}
|
||||
buf := make([]byte, 8)
|
||||
|
Reference in New Issue
Block a user