Changed ids from uint_fast64_t to const string in examples.
the build was successful Details

This commit is contained in:
tastytea 2019-01-27 04:18:40 +01:00
parent b601369bfd
commit a6b4a09dc8
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ int main(int argc, char *argv[])
// Get last status
ret = masto.get(API::v1::accounts_id_statuses,
{
{ "id", { std::to_string(acc.id()) } },
{ "id", { acc.id() } },
{ "limit", { "1" } }
},
answer);

View File

@ -86,9 +86,9 @@ std::uint16_t print_status(Easy &masto, const std::string &id,
// Only print descendant if it is a direct reply
// NOTE: This is a wasteful approach, I use it only in the
// interest of more clarity. Don't do this at home. :-)
if (s.in_reply_to_id() == std::stoull(id))
if (s.in_reply_to_id() == id)
{
print_status(masto, std::to_string(s.id()), level + 4);
print_status(masto, s.id(), level + 4);
}
}
}