Convert size_t to Json::Value::UInt64 for jsoncpp.
Some checks failed
continuous-integration/drone/push Build is failing

jsoncpp-1.7.4 can't convert it itself.
This commit is contained in:
tastytea 2019-12-28 07:49:28 +01:00
parent 3ffd73d68a
commit 8650c3cc6b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ support Atom at the moment.
=== Dependencies
* Tested OS: Linux
* C++ compiler (tested: link:{uri-gcc}[gcc] 7/9)
* C++ compiler (tested: link:{uri-gcc}[gcc] 7/8/9)
* link:{uri-cmake}[cmake] (at least: 3.9)
* link:{uri-boost}[boost] (at least: 1.62)
* link:{uri-mastodon-cpp}[mastodon-cpp] (at least: 0.111.3)

View File

@ -257,7 +257,8 @@ void Config::write()
_json[_profile]["instance"] = data.instance;
_json[_profile]["interval"] = data.interval;
_json[_profile]["last_guid"] = data.last_guid;
_json[_profile]["max_size"] = data.max_size;
_json[_profile]["max_size"]
= static_cast<Json::Value::UInt64>(data.max_size);
// Leave skip.
_json[_profile]["titles_as_cw"] = data.titles_as_cw;
_json[_profile]["titles_only"] = data.titles_only;