diff --git a/source/simulation2/tests/test_Serializer.h b/source/simulation2/tests/test_Serializer.h index 446ab27283..3a00285e48 100644 --- a/source/simulation2/tests/test_Serializer.h +++ b/source/simulation2/tests/test_Serializer.h @@ -925,8 +925,8 @@ public: debug_printf("\n"); debug_printf("# size = %d\n", (int)str.str().length()); debug_printf("# hash = "); - for (size_t i = 0; i < hash.size(); ++i) - debug_printf("%02x", (unsigned int)(u8)hash[i]); + for (const char byte : hash) + debug_printf("%02x", static_cast(static_cast(byte))); debug_printf("\n"); }