Author: particle
Date: Tue Jan  3 09:37:12 2006
New Revision: 10870

Modified:
   trunk/src/classes/string.pmc
Log:
string.pmc: remove compiler warnings

Modified: trunk/src/classes/string.pmc
==============================================================================
--- trunk/src/classes/string.pmc        (original)
+++ trunk/src/classes/string.pmc        Tue Jan  3 09:37:12 2006
@@ -789,7 +789,7 @@ Translate ascii string C<src> with entri
         tr_data = PMC_data(table);    /* XXX */
         for (i = 0; i < len; ++i, ++p) {
             ch = *p;
-            ch = tr_data[ch];
+            ch = (unsigned char)tr_data[ch];
             if (ch)
                 *p = ch;
         }
@@ -837,7 +837,7 @@ Checks if the ascii STRING C<str> is jus
 
     METHOD INTVAL is_integer(STRING* src) {
         INTVAL i, len;
-        unsigned char *p, ch;
+        unsigned char *p;
 
         len = string_length(interpreter, src);
         if (!len)

Reply via email to