From 1048ed9353e46e6814560b0819de8bc64d1be51e Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Fri, 9 Apr 2021 19:57:19 -0700 Subject: [PATCH] :bug: long val was being cast to unsigned instead of signed --- include/bank_f.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bank_f.hpp b/include/bank_f.hpp index 121f086..2113e40 100644 --- a/include/bank_f.hpp +++ b/include/bank_f.hpp @@ -15,13 +15,13 @@ template INLINE Json::Value JsonReturn(T &&val) { Json::Value res; - if constexpr (std::is_same_v) + if constexpr (std::is_same_v) { res["value"] = (int)val; //becuase of json lib interpreting 67 as 'A' for example } else if constexpr (std::is_same_v) { - res["value"] = (Json::UInt64)val; + res["value"] = (Json::Int64)val; } else {