1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Using push/pop in all pragma pack pair to avoid potential padding bugs

This commit is contained in:
Daniel
2022-08-03 12:42:21 +08:00
parent eeffb6d25c
commit dc74b8adfd
8 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ enum HandshakeStatus : uint8_t
enum { WelcomeMessageProgramNameSize = 64 };
enum { WelcomeMessageHostInfoSize = 1024 };
#pragma pack( 1 )
#pragma pack( push, 1 )
// Must increase left query space after handling!
enum ServerQuery : uint8_t
@@ -133,7 +133,7 @@ struct BroadcastMessage
enum { BroadcastMessageSize = sizeof( BroadcastMessage ) };
#pragma pack()
#pragma pack( pop )
}