forked from qt-creator/qt-creator
Utils: Fix memory layout of small string
Change-Id: Ia0509cc922b3807ffc31c278e634bab0f67d2c4d Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -61,8 +61,8 @@ struct AllocatedLayout {
|
||||
size_type capacity;
|
||||
} data;
|
||||
char dummy[maximumShortStringDataAreaSize - sizeof(Data)];
|
||||
std::uint8_t isReference : 1;
|
||||
std::uint8_t shortStringSize: 6;
|
||||
std::uint8_t isReference : 1;
|
||||
std::uint8_t hasAllocated : 1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user