Skip to content

Commit

Permalink
Remove same type for bitfields in Item class.
Browse files Browse the repository at this point in the history
item_type is based on uint16_t. For GCC and clang this doesn't make a
difference, but MSVC might be able to pack the struct better (see #35).
  • Loading branch information
joto committed Aug 20, 2014
1 parent d959a9e commit 1f46a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/osmium/memory/item.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ namespace osmium {

item_size_type m_size;
item_type m_type;
bool m_removed : 1;
int m_padding : 15;
uint16_t m_removed : 1;
uint16_t m_padding : 15;

template <class TMember>
friend class CollectionIterator;
Expand Down

0 comments on commit 1f46a08

Please sign in to comment.