From 50c2c400d54e922fade77e6ca344bc109fda1cc9 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sat, 13 Mar 2021 23:07:39 +0100 Subject: [PATCH] Resolved some compiler warnings Fixes #5773 Thanks to @ijped27 --- src/map/instance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/instance.cpp b/src/map/instance.cpp index 816ff78bdd..ad9b74e2db 100644 --- a/src/map/instance.cpp +++ b/src/map/instance.cpp @@ -724,8 +724,8 @@ void instance_generate_mapname(int map_id, int instance_id, char outname[MAP_NAM static const int prefix_length = 4; // Full map name length - prefix length - seperator character - zero termination static const int suffix_length = MAP_NAME_LENGTH - prefix_length - 1 - 1; - static const int prefix_limit = pow(10, prefix_length); - static const int suffix_limit = pow(10, suffix_length); + static const int prefix_limit = static_cast(pow(10, prefix_length)); + static const int suffix_limit = static_cast(pow(10, suffix_length)); safesnprintf(outname, MAP_NAME_LENGTH, "%0*u#%0*u", prefix_length, map_id % prefix_limit, suffix_length, instance_id % suffix_limit); }