diff --git a/include/bank_f.hpp b/include/bank_f.hpp index b0c6511..f12c689 100644 --- a/include/bank_f.hpp +++ b/include/bank_f.hpp @@ -21,7 +21,7 @@ INLINE Json::Value JsonReturn(T &&val) } else { - res["value"] = (long)val; + res["value"] = val; } return res; } diff --git a/include/user.hpp b/include/user.hpp index 52b8f59..186ba51 100644 --- a/include/user.hpp +++ b/include/user.hpp @@ -25,7 +25,7 @@ struct User Json::Value Serialize() const { Json::Value res; - res["balance"] = (long)balance; + res["balance"] = balance; res["password"] = password; return res; }