Skip to content

Commit

Permalink
specify strconv.ParseFloat bitsize to 64
Browse files Browse the repository at this point in the history
  • Loading branch information
lilasxie authored Nov 17, 2023
1 parent f7e9fba commit 8987efb
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 8987efb

Please sign in to comment.