type fixes

This commit is contained in:
EntireTwix 2021-04-07 00:22:52 -07:00
parent 9c44cf7773
commit 2c8c3f2c9f
3 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ public:
return state; return state;
} }
Json::Value::asInt64 GetBal(const std::string &name) const int_fast64_t GetBal(const std::string &name) const
{ {
int_fast64_t res = -1; int_fast64_t res = -1;
users.if_contains(name, [&res](const User &u) { users.if_contains(name, [&res](const User &u) {

View file

@ -21,7 +21,7 @@ INLINE Json::Value JsonReturn(T &&val)
} }
else else
{ {
res["value"] = val; res["value"] = (long)val;
} }
return res; return res;
} }

View file

@ -25,7 +25,7 @@ struct User
Json::Value Serialize() const Json::Value Serialize() const
{ {
Json::Value res; Json::Value res;
res["balance"] = balance; res["balance"] = (long)balance;
res["password"] = password; res["password"] = password;
return res; return res;
} }