]> Cypherpunks repositories - gostls13.git/commit
cmd/link, cmd/internal/obj: use encoding/binary for varint
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 12 Apr 2019 16:29:43 +0000 (09:29 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 12 Apr 2019 19:15:34 +0000 (19:15 +0000)
commit134ef176f0ebe7e47cd69a400f73cb310a3152c0
tree4ccbe80ae9d92a63a66171e5a6eab1a99c43d5cc
parentc70a7849af56828462ed7d2a5051d917ef6432dc
cmd/link, cmd/internal/obj: use encoding/binary for varint

This code was written before the c2go toolchain conversion.
Replace the handwritten varint encoding routines
and the handwritten unsigned-to-signed conversions
with calls to encoding/binary.

Passes toolstash-check.

Change-Id: I30d7f408cde3772ee98a3825e83075c4e1ec96d8
Reviewed-on: https://go-review.googlesource.com/c/go/+/171769
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/pcln.go
src/cmd/link/internal/ld/pcln.go