From 7d159a00c27b3830ab3e96d5170059285a0138d3 Mon Sep 17 00:00:00 2001 From: Brandon Buck Date: Wed, 2 Dec 2015 11:59:40 -0600 Subject: [PATCH] Revert usage of ParseInt back to Atoi (as was previously done) --- scalars.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalars.go b/scalars.go index f118425c..14782369 100644 --- a/scalars.go +++ b/scalars.go @@ -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