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:
@@ -7,7 +7,7 @@
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
#pragma pack( 1 )
|
||||
#pragma pack( push, 1 )
|
||||
template<typename T, class CompareDefault = std::less<T>>
|
||||
class SortedVector
|
||||
{
|
||||
@@ -118,7 +118,7 @@ private:
|
||||
uint32_t sortedEnd;
|
||||
};
|
||||
|
||||
#pragma pack()
|
||||
#pragma pack( pop )
|
||||
|
||||
enum { SortedVectorSize = sizeof( SortedVector<int> ) };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user