Skip to content

Commit

Permalink
Merge pull request btcsuite#2062 from lilasxie/refactor/parsefloat
Browse files Browse the repository at this point in the history
refactor: set strconv.ParseFloat bitsize to 64
  • Loading branch information
guggero authored Jun 3, 2024
2 parents d2d286f + cccaa5f commit de41825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btcjson/cmdparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit de41825

Please sign in to comment.