mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01:00
refactor: specify strconv.ParseFloat bitsize to 64
This commit is contained in:
parent
d2d286f683
commit
cccaa5f9b0
@ -451,7 +451,7 @@ func assignField(paramNum int, fieldName string, dest reflect.Value, src reflect
|
||||
|
||||
// String -> float of varying size.
|
||||
case reflect.Float32, reflect.Float64:
|
||||
srcFloat, err := strconv.ParseFloat(src.String(), 0)
|
||||
srcFloat, err := strconv.ParseFloat(src.String(), 64)
|
||||
if err != nil {
|
||||
str := fmt.Sprintf("parameter #%d '%s' must "+
|
||||
"parse to a %v", paramNum, fieldName,
|
||||
|
Loading…
Reference in New Issue
Block a user