We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59753a0 commit 4202454Copy full SHA for 4202454
1 file changed
src/variant_allocator.h
@@ -32,8 +32,9 @@ class VariantAllocator {
32
PackedStringArray string_array;
33
};
34
35
- static_assert(sizeof(BucketSmall) == 8, "BucketSmall should have a size of 8 bytes");
36
- static_assert(sizeof(BucketLarge) == 16, "BucketLarge should have a size of 16 bytes");
+ static_assert(sizeof(BucketSmall) <= 8, "BucketSmall should have at most a size of 8 bytes");
+ static_assert(sizeof(BucketLarge) <= 16, "BucketLarge should have at most a size of 16 bytes");
37
+ static_assert(sizeof(BucketSmall) < sizeof(BucketLarge), "BucketLarge should be larger than BucketSmall");
38
39
inline static PagedAllocator<BucketSmall, true> bucket_small;
40
inline static PagedAllocator<BucketLarge, true> bucket_large;
0 commit comments