mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/gc: make Node.Readonly a bool
Convert Node.Readonly to a bool. Change-Id: Ide9f6f657f498d70d7b9544a38046325d7c82dc8 Reviewed-on: https://go-review.googlesource.com/6809 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
4b6337813d
commit
4a174ee4be
3 changed files with 3 additions and 3 deletions
|
|
@ -521,7 +521,7 @@ func staticname(t *Type, ctxt int) *Node {
|
|||
statuniqgen++
|
||||
n := newname(Lookup(namebuf))
|
||||
if ctxt == 0 {
|
||||
n.Readonly = 1
|
||||
n.Readonly = true
|
||||
}
|
||||
addvar(n, t, PEXTERN)
|
||||
return n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue