Fix hint size
This commit is contained in:
		
							parent
							
								
									0bb1b04170
								
							
						
					
					
						commit
						8dd3fe3173
					
				| @ -58,12 +58,14 @@ struct Hint | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| #ifndef _MSC_VER | #ifndef _MSC_VER | ||||||
|  | static_assert(sizeof(Hint) == 60 + 4, "Hint is bigger than expected"); | ||||||
| constexpr std::size_t ENCODED_HINT_SIZE = 88; | constexpr std::size_t ENCODED_HINT_SIZE = 88; | ||||||
| static_assert(ENCODED_HINT_SIZE / 4 * 3 >= sizeof(Hint), | static_assert(ENCODED_HINT_SIZE / 4 * 3 >= sizeof(Hint), | ||||||
|               "ENCODED_HINT_SIZE does not match size of Hint"); |               "ENCODED_HINT_SIZE does not match size of Hint"); | ||||||
| #else | #else | ||||||
| // PhantomNode is bigger under windows because MSVC does not support bit packing
 | // PhantomNode is bigger under windows because MSVC does not support bit packing
 | ||||||
| constexpr std::size_t ENCODED_HINT_SIZE = 84; | static_assert(sizeof(Hint) == 64 + 4, "Hint is bigger than expected"); | ||||||
|  | constexpr std::size_t ENCODED_HINT_SIZE = 92; | ||||||
| static_assert(ENCODED_HINT_SIZE / 4 * 3 >= sizeof(Hint), | static_assert(ENCODED_HINT_SIZE / 4 * 3 >= sizeof(Hint), | ||||||
|               "ENCODED_HINT_SIZE does not match size of Hint"); |               "ENCODED_HINT_SIZE does not match size of Hint"); | ||||||
| #endif | #endif | ||||||
|  | |||||||
| @ -187,6 +187,8 @@ struct PhantomNode | |||||||
| 
 | 
 | ||||||
| #ifndef _MSC_VER | #ifndef _MSC_VER | ||||||
| static_assert(sizeof(PhantomNode) == 60, "PhantomNode has more padding then expected"); | static_assert(sizeof(PhantomNode) == 60, "PhantomNode has more padding then expected"); | ||||||
|  | #else | ||||||
|  | static_assert(sizeof(PhantomNode) == 64, "PhantomNode has more padding then expected"); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| using PhantomNodePair = std::pair<PhantomNode, PhantomNode>; | using PhantomNodePair = std::pair<PhantomNode, PhantomNode>; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user