Commit 95b0fe14 authored by Russ Cox's avatar Russ Cox

cmd/api: s/ideal-bool/bool/

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5674105
parent 0e70f272
......@@ -209,7 +209,7 @@ func (w *Walker) hardCodedConstantType(name string) (typ string, ok bool) {
case "pkg syscall":
switch name {
case "darwinAMD64":
return "ideal-bool", true
return "bool", true
}
}
return "", false
......@@ -447,7 +447,7 @@ func (w *Walker) constValueType(vi interface{}) (string, error) {
return "ideal-int", nil // hack.
}
if v.Name == "false" || v.Name == "true" {
return "ideal-bool", nil
return "bool", nil
}
if v.Name == "intSize" && w.curPackageName == "strconv" {
// Hack.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment