From 209bcfd38062eb93055d421d0f9190055508813e Mon Sep 17 00:00:00 2001 From: MeeSong <6848759+MeeSong@users.noreply.github.com> Date: Tue, 9 Jun 2020 11:17:04 +0800 Subject: [PATCH] support int64 support int64 --- include/jsonrpccxx/typemapper.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/jsonrpccxx/typemapper.hpp b/include/jsonrpccxx/typemapper.hpp index 9ea7e13..74a3f5b 100644 --- a/include/jsonrpccxx/typemapper.hpp +++ b/include/jsonrpccxx/typemapper.hpp @@ -33,9 +33,11 @@ namespace jsonrpccxx { constexpr json::value_t GetType(type) { return json::value_t::number_integer; } constexpr json::value_t GetType(type) { return json::value_t::number_integer; } constexpr json::value_t GetType(type) { return json::value_t::number_integer; } + constexpr json::value_t GetType(type) { return json::value_t::number_integer; } constexpr json::value_t GetType(type) { return json::value_t::number_unsigned; } constexpr json::value_t GetType(type) { return json::value_t::number_unsigned; } constexpr json::value_t GetType(type) { return json::value_t::number_unsigned; } + constexpr json::value_t GetType(type) { return json::value_t::number_unsigned; } inline std::string type_name(json::value_t t) { switch (t) { @@ -180,4 +182,4 @@ namespace jsonrpccxx { }; return GetHandle(function); } -} // namespace jsonrpccxx \ No newline at end of file +} // namespace jsonrpccxx