summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-10 05:18:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-10 10:34:59 +0200
commit8c867fac69fa9da0370000fa170cad1e22702ce5 (patch)
tree46f0bf53535cbc122d4226bc2983d2aa69755ef4
parentc28287b3a79d8f25cb8530db20bdc21b36852b24 (diff)
fix msvc warning
-rw-r--r--serialize/world-writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/world-writer.cpp b/serialize/world-writer.cpp
index 3fa0bf2e..8127eacb 100644
--- a/serialize/world-writer.cpp
+++ b/serialize/world-writer.cpp
@@ -88,7 +88,7 @@ writer_state::writer_state(const world& world) : _world{&world}
uint32_t writer_state::intern_string(StringView name)
{
- auto [kv, fresh] = string_map.try_emplace(name, string_map.size());
+ auto [kv, fresh] = string_map.try_emplace(name, (uint32_t)string_map.size());
return kv->second;
}