Skip to content

Commit

Permalink
refactor: specify strconv.ParseFloat bitsize to 64
Browse files Browse the repository at this point in the history
  • Loading branch information
lilasxie committed Jun 3, 2024
1 parent d2d286f commit cccaa5f
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 cccaa5f

Please sign in to comment.