Reworded commented out code with regards to not knowing the data size yet,
to decide whether to apply the mini data flag. Helps compilation with clang according to ticket #5892. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36908 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
59193042cc
commit
b1784a9dbd
|
@ -324,7 +324,7 @@ MessageAdapter::_R5FlattenedSize(const BMessage *from)
|
|||
#if 0
|
||||
bool miniData = field->dataSize <= 255 && field->count <= 255;
|
||||
#else
|
||||
// ToDo: we don't know the R5 dataSize yet (padding)
|
||||
// TODO: we don't know the R5 dataSize yet (padding)
|
||||
bool miniData = false;
|
||||
#endif
|
||||
|
||||
|
@ -420,9 +420,9 @@ MessageAdapter::_FlattenR5Message(uint32 format, const BMessage *from,
|
|||
|
||||
if (field->count == 1)
|
||||
flags |= R5_FIELD_FLAG_SINGLE_ITEM;
|
||||
// ToDo: we don't really know the data size now (padding missing)
|
||||
if (field->data_size <= 255 && field->count <= 255)
|
||||
;//flags |= R5_FIELD_FLAG_MINI_DATA;
|
||||
// TODO: we don't really know the data size now (padding missing)
|
||||
// if (field->data_size <= 255 && field->count <= 255)
|
||||
// flags |= R5_FIELD_FLAG_MINI_DATA;
|
||||
if (field->flags & FIELD_FLAG_FIXED_SIZE)
|
||||
flags |= R5_FIELD_FLAG_FIXED_SIZE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue