mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
type fixes
This commit is contained in:
parent
9c44cf7773
commit
2c8c3f2c9f
3 changed files with 3 additions and 3 deletions
|
|
@ -101,7 +101,7 @@ public:
|
|||
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;
|
||||
users.if_contains(name, [&res](const User &u) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ INLINE Json::Value JsonReturn(T &&val)
|
|||
}
|
||||
else
|
||||
{
|
||||
res["value"] = val;
|
||||
res["value"] = (long)val;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ struct User
|
|||
Json::Value Serialize() const
|
||||
{
|
||||
Json::Value res;
|
||||
res["balance"] = balance;
|
||||
res["balance"] = (long)balance;
|
||||
res["password"] = password;
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue