Merge branch 'bug40911' into 'main'

Make two 1-bit fields unsigned

Closes #40911

See merge request tpo/core/tor!796
This commit is contained in:
David Goulet 2024-02-08 19:41:22 +00:00
commit b0b943a161
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) */