mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-09 20:53:45 +01:00
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:
parent
fbca1df9dd
commit
4c0e9f1418
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