Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
Revert usage of ParseInt back to Atoi (as was previously done)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuck committed Dec 2, 2015
1 parent bac9587 commit 7d159a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalars.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ var Int *Scalar = NewScalar(ScalarConfig{
ParseLiteral: func(valueAST ast.Value) interface{} {
switch valueAST := valueAST.(type) {
case *ast.IntValue:
if intValue, err := strconv.ParseInt(valueAST.Value, 10, 64); err == nil {
return int(intValue)
if intValue, err := strconv.Atoi(valueAST.Value); err == nil {
return intValue
}
}
return nil
Expand Down

0 comments on commit 7d159a0

Please sign in to comment.