Convert size_t to Json::Value::UInt64 for jsoncpp.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
jsoncpp-1.7.4 can't convert it itself.
This commit is contained in:
parent
3ffd73d68a
commit
8650c3cc6b
|
@ -21,7 +21,7 @@ support Atom at the moment.
|
||||||
=== Dependencies
|
=== Dependencies
|
||||||
|
|
||||||
* Tested OS: Linux
|
* 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-cmake}[cmake] (at least: 3.9)
|
||||||
* link:{uri-boost}[boost] (at least: 1.62)
|
* link:{uri-boost}[boost] (at least: 1.62)
|
||||||
* link:{uri-mastodon-cpp}[mastodon-cpp] (at least: 0.111.3)
|
* link:{uri-mastodon-cpp}[mastodon-cpp] (at least: 0.111.3)
|
||||||
|
|
|
@ -257,7 +257,8 @@ void Config::write()
|
||||||
_json[_profile]["instance"] = data.instance;
|
_json[_profile]["instance"] = data.instance;
|
||||||
_json[_profile]["interval"] = data.interval;
|
_json[_profile]["interval"] = data.interval;
|
||||||
_json[_profile]["last_guid"] = data.last_guid;
|
_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.
|
// Leave skip.
|
||||||
_json[_profile]["titles_as_cw"] = data.titles_as_cw;
|
_json[_profile]["titles_as_cw"] = data.titles_as_cw;
|
||||||
_json[_profile]["titles_only"] = data.titles_only;
|
_json[_profile]["titles_only"] = data.titles_only;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user