mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: remove use of "iota - X"
This was inserted by c2go to turn each enum { ... } into one const ( ... ) block,
but it is fragile and was never intended as a long-term thing.
Change-Id: I8de8e0984b130456da70e4d59891276dfef7ac27
Reviewed-on: https://go-review.googlesource.com/6932
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
cdb7d7dcc2
commit
ed263f4dd2
4 changed files with 77 additions and 19 deletions
|
|
@ -402,8 +402,11 @@ const (
|
|||
)
|
||||
|
||||
const (
|
||||
TYPE_NONE = 0
|
||||
TYPE_BRANCH = 5 + iota - 1
|
||||
TYPE_NONE = 0
|
||||
)
|
||||
|
||||
const (
|
||||
TYPE_BRANCH = 5 + iota
|
||||
TYPE_TEXTSIZE
|
||||
TYPE_MEM
|
||||
TYPE_CONST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue