Author: fabien
Date: 2012-04-20 20:17:40 -0700 (Fri, 20 Apr 2012)
New Revision: 9363
Log:
STR2726 fix. proper cast should be int as specified in isspace documentation, 
not unsigned char

Modified:
   branches/branch-1.3/fluid/Fl_Type.cxx

Modified: branches/branch-1.3/fluid/Fl_Type.cxx
===================================================================
--- branches/branch-1.3/fluid/Fl_Type.cxx       2012-04-21 03:02:25 UTC (rev 
9362)
+++ branches/branch-1.3/fluid/Fl_Type.cxx       2012-04-21 03:17:40 UTC (rev 
9363)
@@ -594,9 +594,9 @@
   undo_checkpoint();
   int length = 0;
   if (n) { // see if blank, strip leading & trailing blanks
-    if (!nostrip) while (isspace(*n)) n++;
+    if (!nostrip) while (isspace((int) *n)) n++;
     const char *e = n + strlen(n);
-    if (!nostrip) while (e > n && isspace(*(e-1))) e--;
+    if (!nostrip) while (e > n && isspace((int)*(e-1))) e--;
     length = e-n;
     if (!length) n = 0;
   }    

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to