be explicit about size rounding

This commit is contained in:
Martin Michelsen
2022-07-21 01:07:01 -07:00
parent c3ccd74e80
commit 0d57bee368
+1 -1
View File
@@ -245,7 +245,7 @@ void send_function_call(
w.put_u32b(key);
// Round size up to a multiple of 4 for encryption
data.resize(data.size() + 3 & ~3);
data.resize((data.size() + 3) & ~3);
// For this format, the code section is decrypted without byteswapping on
// the client (GameCube), which is big-endian, so we have to treat the data