compile/internal/gc: make typecheckok a bool

Change-Id: Ib3960321a4c8164f6b221bfd15977d2f34dbc65b
Reviewed-on: https://go-review.googlesource.com/14175
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Håvard Haugen 2015-08-30 23:56:40 +02:00 committed by Brad Fitzpatrick
parent 45537d893d
commit dc3540d982
4 changed files with 7 additions and 7 deletions

View file

@ -360,7 +360,7 @@ func Main() {
mkpackage(localpkg.Name) // final import not used checks
lexfini()
typecheckok = 1
typecheckok = true
if Debug['f'] != 0 {
frame(1)
}
@ -799,7 +799,7 @@ func importfile(f *Val, line int) {
curio.peekc1 = 0
curio.infile = file
curio.nlsemi = 0
typecheckok = 1
typecheckok = true
var c int32
for {
@ -836,7 +836,7 @@ func unimportfile() {
pushedio.bin = nil
incannedimport = 0
typecheckok = 0
typecheckok = false
}
func cannedimports(file string, cp string) {
@ -852,7 +852,7 @@ func cannedimports(file string, cp string) {
curio.nlsemi = 0
curio.importsafe = false
typecheckok = 1
typecheckok = true
incannedimport = 1
}