Author: petdance
Date: Sat Feb 23 19:03:05 2008
New Revision: 26034

Modified:
   trunk/languages/plumhead/pmc/phparray.pmc

Log:
fixed a missing cast that ran afoul of a coding standard test

Modified: trunk/languages/plumhead/pmc/phparray.pmc
==============================================================================
--- trunk/languages/plumhead/pmc/phparray.pmc   (original)
+++ trunk/languages/plumhead/pmc/phparray.pmc   Sat Feb 23 19:03:05 2008
@@ -143,7 +143,7 @@
             c0 = VTABLE_get_string_keyed(interp, *key, index_pmc);
 
             /*I should be able to get away with this when I'm just checking 
the first char*/
-            if (isdigit(*c0->strstart)) {
+            if (isdigit((unsigned char)*(c0->strstart))) {
                 INTVAL key_int = VTABLE_get_integer(interp, *key);
                 *key = pmc_new(interp, enum_class_Integer);
                 VTABLE_set_integer_native(interp, *key, key_int);

Reply via email to