mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
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:
commit
b0b943a161
5
changes/bug40911
Normal file
5
changes/bug40911
Normal 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.
|
||||
|
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user