From e4fa2186f971a079af4bb7e1cdb4994bc615988f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 28 Nov 2022 17:36:24 +0100 Subject: serialize: fix printf format string --- serialize/scenery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'serialize') diff --git a/serialize/scenery.cpp b/serialize/scenery.cpp index e12df693..354e7b75 100644 --- a/serialize/scenery.cpp +++ b/serialize/scenery.cpp @@ -50,7 +50,7 @@ StringView foo_to_string(auto type, const T(&map)[N], const char* desc) for (const auto& [type2, str] : map) if (type2 == type) return str; - fm_abort("wrong %s enum '%hhu'", desc, type); + fm_abort("wrong %s enum '%zu'", desc, (std::size_t)type); } } // namespace -- cgit v1.2.3