// code in atoi.go, line 90
var cutoff uint64
switch base {
case 10:
cutoff = maxUint64/10 + 1
case 16:
cutoff = maxUint64/16 + 1
default:
cutoff = maxUint64/uint64(base) + 1
}
我在Golang包的文件atoi.go中看到了一些代码,为什么不像下面这样写呢?
var cutoff = maxUint64/uint64(base) + 1
非常感谢。