Fix MSVS build.

This commit is contained in:
Michael Krasnyk 2016-05-05 11:04:44 +02:00
parent 7316c48e9f
commit 7e80dae59b
No known key found for this signature in database
GPG Key ID: A277FCFBE39A658D

View File

@ -74,9 +74,9 @@ class StaticRTree
struct LeafNode
{
LeafNode() : object_count(0), objects() {}
uint32_t object_count;
std::uint32_t object_count;
std::array<EdgeDataT, LEAF_NODE_SIZE> objects;
unsigned char leaf_page_padding[LEAF_PAGE_SIZE - sizeof(object_count) - sizeof(objects)];
unsigned char leaf_page_padding[LEAF_PAGE_SIZE - sizeof(std::uint32_t) - sizeof(std::array<EdgeDataT, LEAF_NODE_SIZE>)];
};
static_assert(sizeof(LeafNode) == LEAF_PAGE_SIZE, "LeafNode size does not fit the page size");