Only test if a char is >= 0x00 when CHAR_MIN is < 0, so gcc doesn't
warn about the comparison always being true. Fixes build for macppc target. Problem noted by me, analysis and fix from Thomas Klausner. Approved by wiz.
This commit is contained in:
parent
e7346e3b2b
commit
e09f32d58e
|
@ -310,7 +310,11 @@ mb_width (const mbchar_t mbc)
|
|||
{
|
||||
if (mbc->bytes == 1)
|
||||
{
|
||||
if (mbc->buf[0] >= 0x00 && mbc->buf[0] <= 0x1F)
|
||||
if (
|
||||
#if CHAR_MIN < 0x00 /* to avoid gcc warning */
|
||||
mbc->buf[0] >= 0x00 &&
|
||||
#endif
|
||||
mbc->buf[0] <= 0x1F)
|
||||
{
|
||||
if (mbc->buf[0] == 0x09)
|
||||
return 8 - (gram_pos_column & 7);
|
||||
|
|
Loading…
Reference in New Issue