summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-09-08 15:42:47 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-09-08 15:42:47 +0000
commit53d7e32ff3f2c6baf17d10988736ba6bf3f8c4c6 (patch)
tree631d43f541f05d648cdd4e41e0dd3c1e3f531003 /src
parenta8b58dc223afc42c36a551ae6d6992e6bb02b2c7 (diff)
Clean up compiler warnings...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Buffer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index e5e4e17a0..9cd61926a 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.21 2004/06/01 20:33:26 easysw Exp $"
+// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.22 2004/09/08 15:42:47 easysw Exp $"
//
// Copyright 2001-2004 by Bill Spitzak and others.
// Original code Copyright Mark Edel. Permission to distribute under
@@ -942,7 +942,7 @@ int Fl_Text_Buffer::expand_character( char c, int indent, char *outStr, int tabD
/* Convert control codes to readable character sequences */
/*... is this safe with international character sets? */
if ( ( ( unsigned char ) c ) <= 31 ) {
- sprintf( outStr, "<%s>", ControlCodeTable[ c ] );
+ sprintf( outStr, "<%s>", ControlCodeTable[ ( unsigned char ) c ] );
return strlen( outStr );
} else if ( c == 127 ) {
sprintf( outStr, "<del>" );
@@ -969,7 +969,7 @@ int Fl_Text_Buffer::character_width( char c, int indent, int tabDist, char nullS
if ( c == '\t' )
return tabDist - ( indent % tabDist );
else if ( ( ( unsigned char ) c ) <= 31 )
- return strlen( ControlCodeTable[ c ] ) + 2;
+ return strlen( ControlCodeTable[ ( unsigned char ) c ] ) + 2;
else if ( c == 127 )
return 5;
else if ( c == nullSubsChar )
@@ -2517,5 +2517,5 @@ Fl_Text_Buffer::outputfile(const char *file, int start, int end, int buflen) {
//
-// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.21 2004/06/01 20:33:26 easysw Exp $".
+// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.22 2004/09/08 15:42:47 easysw Exp $".
//