Make two 1-bit fields unsigned

This should be a completely harmless warning as we only check whether
the fields are true or false.

Closes #40911.
This commit is contained in:
Sebastian Hahn 2024-02-01 19:45:04 +01:00
parent fbca1df9dd
commit 4c0e9f1418
2 changed files with 7 additions and 2 deletions

5
changes/bug40911 Normal file
View File

@ -0,0 +1,5 @@
o Minor bugfixes (compiler warnings):
- Make sure the two bitfields in the half-closed edge struct are
unsigned, as we're using them for boolean values and assign 1 to
them. Fixes bug 40911; bugfix on 0.4.7.2-alpha.

View File

@ -41,10 +41,10 @@ typedef struct half_edge_t {
/**
* Did this edge use congestion control? If so, use
* timer instead of pending data approach */
int used_ccontrol : 1;
unsigned int used_ccontrol : 1;
/** Is there a connected cell pending? */
int connected_pending : 1;
unsigned int connected_pending : 1;
} half_edge_t;
#endif /* !defined(HALF_EDGE_ST_H) */