]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Consistently `unsigned int` for bitfields
authorTim Duesterhus <tim@bastelstu.be>
Sat, 16 Oct 2021 16:24:18 +0000 (18:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Oct 2021 07:13:24 +0000 (09:13 +0200)
see 6a0dd733906611dea958cf74b9f51bb16028ae20

Found using GitHub's CodeQL scan.

include/haproxy/stick_table-t.h

index 3b1f2b3ef901278b3c13bb7b8a688226eb57b5bc..57888e041a17c4ca49c47f42cbdc7ee0fb1720ab 100644 (file)
@@ -125,8 +125,8 @@ struct stktable_data_type {
        const char *name; /* name of the data type */
        int std_type;     /* standard type we can use for this data, STD_T_* */
        int arg_type;     /* type of optional argument, ARG_T_* */
-       int is_array:1;   /* this is an array of gpc/gpt */
-       int is_local:1;   /* this is local only and never learned */
+       uint is_array:1;  /* this is an array of gpc/gpt */
+       uint is_local:1;  /* this is local only and never learned */
 };
 
 /* stick table keyword type */