compiler: update integer type sizes

* Use 64-bit integers on 64-bit platforms, just like gc and gccgo:
  https://golang.org/doc/go1.1#int
* Do not use a separate length type. Instead, use uintptr everywhere a
  length is expected.
This commit is contained in:
Ayke van Laethem
2018-11-14 14:01:04 +01:00
parent 101d41dc58
commit ee7c276493
10 changed files with 68 additions and 80 deletions
-3
View File
@@ -8,9 +8,6 @@ import (
const GOARCH = "arm"
// The length type used inside strings and slices.
type lenType uint32
// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 32