Commit d1b32592 authored by Marco Bubke's avatar Marco Bubke

Utils: Fix memory layout of small string

Change-Id: Ia0509cc922b3807ffc31c278e634bab0f67d2c4d
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 32842e75
......@@ -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;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment