Skip to content

Commit 511257a

Browse files
author
Rafał Hibner
committed
Update JSONResponse.cpp
1 parent 9f04c5f commit 511257a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/JSONResponse.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,23 @@ struct ResponseHandler : rapidjson::BaseReaderHandler<rapidjson::UTF8<>, Respons
131131
{
132132
if (i > static_cast<unsigned int>(std::numeric_limits<int>::max()))
133133
{
134-
return Double(d);
134+
return Double(i);
135135
// https://spec.graphql.org/October2021/#sec-Int
136136
//throw std::overflow_error("GraphQL only supports 32-bit signed integers");
137137
}
138138
return Int(static_cast<int>(i));
139139
}
140140

141-
bool Int64(int64_t /*i*/)
141+
bool Int64(int64_t i)
142142
{
143-
return Double(d);
143+
return Double(i);
144144
// https://spec.graphql.org/October2021/#sec-Int
145145
//throw std::overflow_error("GraphQL only supports 32-bit signed integers");
146146
}
147147

148-
bool Uint64(uint64_t /*i*/)
148+
bool Uint64(uint64_t i)
149149
{
150-
return Double(d);
150+
return Double(i);
151151
// https://spec.graphql.org/October2021/#sec-Int
152152
//throw std::overflow_error("GraphQL only supports 32-bit signed integers");
153153
}

0 commit comments

Comments
 (0)