From 5ab44d13a6cfcf9462a109700a7530c07ba92c49 Mon Sep 17 00:00:00 2001 From: A-lex-Ra Date: Wed, 14 Feb 2024 11:34:35 +0600 Subject: [PATCH] gnu type deducing fix --- src/items/Inventories.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/Inventories.cpp b/src/items/Inventories.cpp index 787f31e6..c072ff27 100644 --- a/src/items/Inventories.cpp +++ b/src/items/Inventories.cpp @@ -21,7 +21,7 @@ std::shared_ptr Inventories::create(size_t size) { std::shared_ptr Inventories::createVirtual(size_t size) { int64_t id; do { - id = -std::max(1LL, std::abs(random.rand64())); + id = -std::max(1LL, std::llabs(random.rand64())); } while (map.find(id) != map.end()); auto inv = std::make_shared(id, size);