Skip to content

Commit 5fa0612

Browse files
authored
Merge pull request graphql-go#511 from lspgn/louis/fix-scalar-issue
Fix scalar parse float issue graphql-go#510
2 parents b06cae7 + b6d2bbc commit 5fa0612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalars.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ var Float = NewScalar(ScalarConfig{
296296
return floatValue
297297
}
298298
case *ast.IntValue:
299-
if floatValue, err := strconv.ParseFloat(valueAST.Value, 32); err == nil {
299+
if floatValue, err := strconv.ParseFloat(valueAST.Value, 64); err == nil {
300300
return floatValue
301301
}
302302
}

0 commit comments

Comments
 (0)