mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
gnu type deducing fix
This commit is contained in:
parent
408dccc590
commit
5ab44d13a6
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ std::shared_ptr<Inventory> Inventories::create(size_t size) {
|
|||
std::shared_ptr<Inventory> Inventories::createVirtual(size_t size) {
|
||||
int64_t id;
|
||||
do {
|
||||
id = -std::max(1LL, std::abs(random.rand64()));
|
||||
id = -std::max<int64_t>(1LL, std::llabs(random.rand64()));
|
||||
} while (map.find(id) != map.end());
|
||||
|
||||
auto inv = std::make_shared<Inventory>(id, size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue