diff options
author | David Lechner <david@pybricks.com> | 2020-03-09 18:09:49 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-11 14:34:40 +1100 |
commit | 8a4ce6b79a09510fc5b970f2c019519f47852101 (patch) | |
tree | 9359da07f08325a19479e7c5badae358a6b659cf /py/mpz.h | |
parent | fccf17521aeec7438785a132434137f266474119 (diff) |
tools/codeformat.py: Eliminate need for sizeof fixup.
This eliminates the need for the sizeof regex fixup by rearranging things a
bit. All other bitfields already use the parentheses around expressions
with sizeof, so one case is fixed by following this convention.
VM_MAX_STATE_ON_STACK is the only remaining problem and it can be worked
around by changing the order of the operands.
Diffstat (limited to 'py/mpz.h')
-rw-r--r-- | py/mpz.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ typedef int8_t mpz_dbl_dig_signed_t; typedef struct _mpz_t { size_t neg : 1; size_t fixed_dig : 1; - size_t alloc : 8 * sizeof(size_t) - 2; + size_t alloc : (8 * sizeof(size_t) - 2); size_t len; mpz_dig_t *dig; } mpz_t; |