diff options
-rw-r--r-- | serialize/world-writer.cpp | 2 |
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; } |