From 117bd33ca0d88829c128299b1065aac1dff2a88c Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 29 Jun 2021 15:54:57 -0700 Subject: [PATCH] :bug: error on cast --- src/bank_api.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bank_api.cpp b/src/bank_api.cpp index 63b853e..05caad0 100644 --- a/src/bank_api.cpp +++ b/src/bank_api.cpp @@ -27,11 +27,11 @@ constexpr Json::Value JsonCast(T &&val) } else if constexpr (std::is_same_v) { - return (Json::Int64)val; + return (Json::UInt64)val; } - else if constexpr (std::is_same_v) + else if constexpr (std::is_same_v) { - return (Json::Int64)val; + return (Json::UInt)val; } else {