From 17cb1a0c23e9fa493fba885c91a9579d03010fb7 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 15 Jun 2021 12:34:15 -0700 Subject: [PATCH] int 64 cast json --- src/bank_f.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bank_f.cpp b/src/bank_f.cpp index b9cdfe5..4958cc0 100644 --- a/src/bank_f.cpp +++ b/src/bank_f.cpp @@ -19,9 +19,9 @@ INLINE Json::Value JsonReturn(T &&val) { res["value"] = (Json::Int64)val; } - else + else if constexpr (std::is_same_v) { - res["value"] = val; + res["value"] = (Json::Int64)val; } return res; }