Skip to content

Commit bf800b0

Browse files
authored
Merge pull request #9 from MeeSong/master
support int64
2 parents 24442a3 + 209bcfd commit bf800b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/jsonrpccxx/typemapper.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ namespace jsonrpccxx {
3333
constexpr json::value_t GetType(type<short>) { return json::value_t::number_integer; }
3434
constexpr json::value_t GetType(type<int>) { return json::value_t::number_integer; }
3535
constexpr json::value_t GetType(type<long>) { return json::value_t::number_integer; }
36+
constexpr json::value_t GetType(type<long long>) { return json::value_t::number_integer; }
3637
constexpr json::value_t GetType(type<unsigned short>) { return json::value_t::number_unsigned; }
3738
constexpr json::value_t GetType(type<unsigned int>) { return json::value_t::number_unsigned; }
3839
constexpr json::value_t GetType(type<unsigned long>) { return json::value_t::number_unsigned; }
40+
constexpr json::value_t GetType(type<unsigned long long>) { return json::value_t::number_unsigned; }
3941

4042
inline std::string type_name(json::value_t t) {
4143
switch (t) {
@@ -180,4 +182,4 @@ namespace jsonrpccxx {
180182
};
181183
return GetHandle(function);
182184
}
183-
} // namespace jsonrpccxx
185+
} // namespace jsonrpccxx

0 commit comments

Comments
 (0)