summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-12 00:55:21 +0000
committerSadie Powell <sadie@witchery.services>2025-03-12 00:55:21 +0000
commit2b2b6f75a19ee59b3356d58e68a36edb80249d76 (patch)
tree94d1f094ce79ab36016ce200a787b24cc73c0df0
parent2276c62ff02755f536de7d153368c3b9547beb23 (diff)
Fix the id data type in db_flatfile.
-rw-r--r--modules/database/db_flatfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp
index 4a1e8830d..dace35d5e 100644
--- a/modules/database/db_flatfile.cpp
+++ b/modules/database/db_flatfile.cpp
@@ -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)