When WCHAR_MIN == 0 the check if a wchar_t value will always be true. In
this case skip the test as gcc complains it is always true.
This commit is contained in:
parent
aa070dea50
commit
3c96f482d9
@ -184,7 +184,10 @@ prn_octal(const char *s)
|
||||
for (i = 0; i < (int)clen; i++)
|
||||
putchar((unsigned char)s[i]);
|
||||
len += wcwidth(wc);
|
||||
} else if (goodchar && f_octal_escape && wc >= 0 &&
|
||||
} else if (goodchar && f_octal_escape &&
|
||||
#if WCHAR_MIN < 0
|
||||
wc >= 0 &&
|
||||
#endif
|
||||
wc <= (wchar_t)UCHAR_MAX &&
|
||||
(p = strchr(esc, (char)wc)) != NULL) {
|
||||
putchar('\\');
|
||||
|
Loading…
x
Reference in New Issue
Block a user