cmd/internal/objabi: shrink SymType down to a uint8

Now that it only takes small values.

Change-Id: I08086d392529d8775b470d65afc2475f8d0e7f4a
Reviewed-on: https://go-review.googlesource.com/42030
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Michael Hudson-Doyle 2017-04-28 08:07:56 +12:00
parent d2a9545178
commit 4aca8b00ff
4 changed files with 10 additions and 5 deletions

View file

@ -283,7 +283,7 @@ func (w *objWriter) writeSym(s *LSym) {
}
w.wr.WriteByte(symPrefix)
w.writeInt(int64(s.Type))
w.wr.WriteByte(byte(s.Type))
w.writeRefIndex(s)
flags := int64(0)
if s.DuplicateOK() {