eina: Fixed undefined behavior usage of bitfields and enumerations

On Microsoft Visual Studio, enumerations are signed and consequently get sign-extended when used with bit-fields, which causes the number to become inadvertently negative.

I removed the undefined behavior use by defining explictly as a unsigned int, so it works on all platforms.
This commit is contained in:
Lucas Cavalcante de Sousa 2020-05-20 10:17:14 -03:00 committed by Felipe Magno de Almeida
parent 1e22a1b90b
commit c5f80ad384
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ struct _Eina_Iterator_Rbtree_List
{
Eina_Rbtree *tree;
Eina_Rbtree_Direction dir : 1;
unsigned int dir : 1;
Eina_Bool up : 1;
};