Skip to content

Commit f52d8fa

Browse files
committed
Fix scalar parse float issue graphql-go#510
1 parent 199d20b commit f52d8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalars.go

Lines changed: 1 addition & 1 deletion
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)