diff options
| author | Joseph Richey <joerichey94@gmail.com> | 2017-09-29 02:08:56 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2017-09-29 02:33:45 -0700 |
| commit | 05911d5503434a802c6dc9909a74cc76c2bf6661 (patch) | |
| tree | e1e7aa0ba09dcc4b4c56b28429d1f6f288bba03b /vendor/github.com/golang/protobuf/proto/encode.go | |
| parent | a949b13dac670014c37c7181e368b9c0c7a7f0f5 (diff) | |
vendor: Update to latest versions
This changes the vendored sources of github.com/golang/protobuf,
golang.org/x/crypto/ssh, and golang.org/x/sys/unix to be the current
master versions.
Diffstat (limited to 'vendor/github.com/golang/protobuf/proto/encode.go')
| -rw-r--r-- | vendor/github.com/golang/protobuf/proto/encode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go index 2b30f84..8b84d1b 100644 --- a/vendor/github.com/golang/protobuf/proto/encode.go +++ b/vendor/github.com/golang/protobuf/proto/encode.go @@ -174,11 +174,11 @@ func sizeFixed32(x uint64) int { // This is the format used for the sint64 protocol buffer type. func (p *Buffer) EncodeZigzag64(x uint64) error { // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return p.EncodeVarint((x << 1) ^ uint64((int64(x) >> 63))) } func sizeZigzag64(x uint64) int { - return sizeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return sizeVarint((x << 1) ^ uint64((int64(x) >> 63))) } // EncodeZigzag32 writes a zigzag-encoded 32-bit integer |