mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Use range based for loop in TestSerializerPerf
CppCheck warned that `i` might be out of bound.
This commit is contained in:
parent
9911615e62
commit
b686dfa047
1 changed files with 2 additions and 2 deletions
|
|
@ -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<unsigned int>(static_cast<u8>(byte)));
|
||||
debug_printf("\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue