1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 17:56:38 +02:00

Fix the id data type in db_flatfile.

This commit is contained in:
Sadie Powell
2025-03-12 00:55:21 +00:00
parent 2276c62ff0
commit 2b2b6f75a1
+2 -2
View File
@@ -39,7 +39,7 @@ class LoadData final
{
public:
std::fstream *fs = nullptr;
unsigned int id = 0;
uint64_t id = 0;
std::map<Anope::string, Anope::string> data;
std::stringstream ss;
bool read = false;
@@ -52,7 +52,7 @@ public:
{
if (token.find("ID ") == 0)
{
this->id = Anope::Convert(token.substr(3), 0);
this->id = Anope::Convert<uint64_t>(token.substr(3), 0);
continue;
}
else if (token.find("DATA ") != 0)