This patch fixes comparison bugs on platforms with unsigned char as the
default.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Index: lib/Xm/Text.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/lesstif/lib/Xm/Text.c,v
retrieving revision 1.1.1.11
retrieving revision 1.2
diff -u -r1.1.1.11 -r1.2
--- lib/Xm/Text.c       22 Jan 2003 20:05:10 -0000      1.1.1.11
+++ lib/Xm/Text.c       29 Mar 2003 01:03:29 -0000      1.2
@@ -622,7 +622,7 @@
        /* FIXME : when/how is char_size more than 1 */
     Text_CharSize(w) = 1;
 
-    if ( Text_VerifyBell(w) == XmUNSPECIFIED )
+    if ( Text_VerifyBell(w) == (Boolean)XmUNSPECIFIED )
        {
        Widget vendor = XtParent(w);
        while ( vendor && !XmIsVendorShell( vendor ) )
Index: lib/Uil/uillex.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/lesstif/lib/Uil/uillex.c,v
retrieving revision 1.1.1.6
retrieving revision 1.2
diff -u -r1.1.1.6 -r1.2
--- lib/Uil/uillex.c    15 Mar 2002 12:12:33 -0000      1.1.1.6
+++ lib/Uil/uillex.c    29 Mar 2003 01:03:29 -0000      1.2
@@ -314,7 +314,7 @@
 
     cf->forward++;
     cf->colno++;
-    if (*cf->forward == EOF)
+    if (*cf->forward == (char)EOF)
     {
        if (cf->forward - cf->pbuf == PARSE_BUF_SIZE - 1)
        {
@@ -459,7 +459,7 @@
            break;
 
        case '!':
-           while ((ch = input(pd)) != '\n' && ch != EOF)
+           while ((ch = input(pd)) != '\n' && ch != (char)EOF)
                ;
 
            pd->file_data[pd->cur_file].lexeme =
@@ -478,7 +478,7 @@
            ch2 = input(pd);
            if (ch2 == '*')
            {
-               while ((ch2 = input(pd)) != EOF)
+               while ((ch2 = input(pd)) != (char)EOF)
                {
                    if (ch2 == '*')
                    {
@@ -495,7 +495,7 @@
                TRACE(("C comment: lineno: %d\n",
                       pd->file_data[pd->cur_file].lineno));
 
-               if (ch == EOF)
+               if (ch == (char)EOF)
                {
                    return EOF;
                }
@@ -515,7 +515,7 @@
        case '"':
            ch2 = ch;
            ptr = pd->curtok;
-           while ((ch = input(pd)) != EOF)
+           while ((ch = input(pd)) != (char)EOF)
            {
                if (ch == '\'' || ch == '"')
                {
@@ -530,7 +530,7 @@
                ch2 = ch;
            }
 
-           if (ch == EOF)
+           if (ch == (char)EOF)
            {
                unput(pd);
            }
@@ -569,7 +569,7 @@
            ptr = pd->curtok;
            *ptr = ch;
            ptr++;
-           while ((ch = input(pd)) != EOF)
+           while ((ch = input(pd)) != (char)EOF)
            {
                if (!isdigit(ch) || ch != '.')
                {
@@ -627,7 +627,7 @@
                ptr = pd->curtok;
                *ptr = ch;
                ptr++;
-               while ((ch = input(pd)) != EOF)
+               while ((ch = input(pd)) != (char)EOF)
                {
                    if (!isalpha(ch) && !isdigit(ch) && ch != '_')
                    {

Reply via email to