Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gettext/gettext-tools/src Fix the second place wher...



details:   https://anonhg.NetBSD.org/src/rev/738a6e9d3c38
branches:  trunk
changeset: 580641:738a6e9d3c38
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 02 03:54:24 2005 +0000

description:
Fix the second place where the CHAR_MIN test was used.

diffstat:

 gnu/dist/gettext/gettext-tools/src/po-lex.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (16 lines):

diff -r 4a113f1189d9 -r 738a6e9d3c38 gnu/dist/gettext/gettext-tools/src/po-lex.c
--- a/gnu/dist/gettext/gettext-tools/src/po-lex.c       Mon May 02 03:37:01 2005 +0000
+++ b/gnu/dist/gettext/gettext-tools/src/po-lex.c       Mon May 02 03:54:24 2005 +0000
@@ -303,11 +303,7 @@
     {
       if (mbc->bytes == 1)
        {
-         if (
-#if CHAR_MIN < 0x00 /* to avoid gcc warning */
-           mbc->buf[0] >= 0x00 &&
-#endif
-           mbc->buf[0] <= 0x1F)
+         if ((mbc->buf[0] & 0x80) == 0 && mbc->buf[0] <= 0x1F)
            {
              if (mbc->buf[0] == 0x09)
                return 8 - (gram_pos_column & 7);



Home | Main Index | Thread Index | Old Index