mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
make safe for new package local defaults
R=r DELTA=462 (9 added, 33 deleted, 420 changed) OCL=22879 CL=22885
This commit is contained in:
parent
1d74892178
commit
b54133d200
17 changed files with 406 additions and 403 deletions
|
|
@ -153,7 +153,7 @@ func ValueToString(val Value) string {
|
|||
case Uint64Kind:
|
||||
return integer(int64(val.(Uint64Value).Get()));
|
||||
case FloatKind:
|
||||
if strconv.floatsize == 32 {
|
||||
if strconv.FloatSize == 32 {
|
||||
return strconv.ftoa32(float32(val.(FloatValue).Get()), 'g', -1);
|
||||
} else {
|
||||
return strconv.ftoa64(float64(val.(FloatValue).Get()), 'g', -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue