| Index: fusl/src/stdio/vfwprintf.c
|
| diff --git a/fusl/src/stdio/vfwprintf.c b/fusl/src/stdio/vfwprintf.c
|
| index f06d5aedb21bb3bae5d0600b1b8126db678add40..87a75134791f5c94a46b8906c7e5803b05cbd661 100644
|
| --- a/fusl/src/stdio/vfwprintf.c
|
| +++ b/fusl/src/stdio/vfwprintf.c
|
| @@ -10,12 +10,12 @@
|
| /* Convenient bit representation for modifier flags, which all fall
|
| * within 31 codepoints of the space character. */
|
|
|
| -#define ALT_FORM (1U<<'#'-' ')
|
| -#define ZERO_PAD (1U<<'0'-' ')
|
| -#define LEFT_ADJ (1U<<'-'-' ')
|
| -#define PAD_POS (1U<<' '-' ')
|
| -#define MARK_POS (1U<<'+'-' ')
|
| -#define GROUPED (1U<<'\''-' ')
|
| +#define ALT_FORM (1U<<('#'-' '))
|
| +#define ZERO_PAD (1U<<('0'-' '))
|
| +#define LEFT_ADJ (1U<<('-'-' '))
|
| +#define PAD_POS (1U<<(' '-' '))
|
| +#define MARK_POS (1U<<('+'-' '))
|
| +#define GROUPED (1U<<('\''-' '))
|
|
|
| #define FLAGMASK (ALT_FORM|ZERO_PAD|LEFT_ADJ|PAD_POS|MARK_POS|GROUPED)
|
|
|
| @@ -209,8 +209,8 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_
|
| }
|
|
|
| /* Read modifier flags */
|
| - for (fl=0; (unsigned)*s-' '<32 && (FLAGMASK&(1U<<*s-' ')); s++)
|
| - fl |= 1U<<*s-' ';
|
| + for (fl=0; (unsigned)*s-' '<32 && (FLAGMASK&(1U<<(*s-' '))); s++)
|
| + fl |= 1U<<(*s-' ');
|
|
|
| /* Read field width */
|
| if (*s=='*') {
|
|
|