Skip to content

Commit b86075e

Browse files
committed
py/parse: Add parenthesis around calculated bit-width in struct.
To improve interaction with uncrustify formatter.
1 parent 3c58d9a commit b86075e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: py/parse.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ STATIC const char *const rule_name_table[] = {
208208
#endif
209209

210210
typedef struct _rule_stack_t {
211-
size_t src_line : 8 * sizeof(size_t) - 8; // maximum bits storing source line number
211+
size_t src_line : (8 * sizeof(size_t) - 8); // maximum bits storing source line number
212212
size_t rule_id : 8; // this must be large enough to fit largest rule number
213213
size_t arg_i; // this dictates the maximum nodes in a "list" of things
214214
} rule_stack_t;

0 commit comments

Comments
 (0)