int 64 cast json

This commit is contained in:
EntireTwix 2021-06-15 12:34:15 -07:00
parent 1f8df1e94c
commit 17cb1a0c23

View file

@ -19,9 +19,9 @@ INLINE Json::Value JsonReturn(T &&val)
{ {
res["value"] = (Json::Int64)val; res["value"] = (Json::Int64)val;
} }
else else if constexpr (std::is_same_v<T, int64_t>)
{ {
res["value"] = val; res["value"] = (Json::Int64)val;
} }
return res; return res;
} }