Commit 4c0e9f14 authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

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.
parent fbca1df9
Loading
Loading
Loading
Loading

changes/bug40911

0 → 100644
+5 −0
Original line number Diff line number Diff line
  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.
+2 −2
Original line number Diff line number Diff line
@@ -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) */