diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-19 16:37:36 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-19 16:37:36 +0000 |
| commit | a74795bbb88ffee1cc35144466c161f2bf585e1f (patch) | |
| tree | 0f0bc7d27e310d4970ba963c622c4fa91aa6eef2 /src/Fl_Help_View.cxx | |
| parent | 2921ca57a03c93d10e8791830256d8baf73e523f (diff) | |
Get rid of some valid compiler warnings with CodeWarrior that were reported
by Paul Chambers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
| -rw-r--r-- | src/Fl_Help_View.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 924c3e6d7..1089a3f8e 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Help_View.cxx,v 1.1.2.43 2002/10/11 20:48:14 easysw Exp $" +// "$Id: Fl_Help_View.cxx,v 1.1.2.44 2002/11/19 16:37:34 easysw Exp $" // // Fl_Help_View widget routines. // @@ -529,11 +529,11 @@ Fl_Help_View::draw() if (tolower(buf[0]) == 'h') { font = FL_HELVETICA_BOLD; - fsize = textsize_ + '7' - buf[1]; + fsize = (uchar)(textsize_ + '7' - buf[1]); } else if (strcasecmp(buf, "DT") == 0) { - font = textfont_ | FL_ITALIC; + font = (uchar)(textfont_ | FL_ITALIC); fsize = textsize_; } else if (strcasecmp(buf, "PRE") == 0) @@ -1051,7 +1051,7 @@ Fl_Help_View::format() else if (strcasecmp(buf, "TABLE") == 0) { if (get_attr(attrs, "BORDER", attr, sizeof(attr))) - border = atoi(attr); + border = (uchar)atoi(attr); else border = 0; @@ -1088,11 +1088,11 @@ Fl_Help_View::format() if (tolower(buf[0]) == 'h' && isdigit(buf[1])) { font = FL_HELVETICA_BOLD; - fsize = textsize_ + '7' - buf[1]; + fsize = (uchar)(textsize_ + '7' - buf[1]); } else if (strcasecmp(buf, "DT") == 0) { - font = textfont_ | FL_ITALIC; + font = (uchar)(textfont_ | FL_ITALIC); fsize = textsize_; } else if (strcasecmp(buf, "PRE") == 0) @@ -1273,7 +1273,7 @@ Fl_Help_View::format() block->h += hh; if (strcasecmp(buf, "TH") == 0) - font = textfont_ | FL_BOLD; + font = (uchar)(textfont_ | FL_BOLD); else font = textfont_; @@ -1629,11 +1629,11 @@ Fl_Help_View::format_table(int *table_width, // O - Total table width if (tolower(buf[0]) == 'h' && isdigit(buf[1])) { font = FL_HELVETICA_BOLD; - fsize = textsize_ + '7' - buf[1]; + fsize = (uchar)(textsize_ + '7' - buf[1]); } else if (strcasecmp(buf, "DT") == 0) { - font = textfont_ | FL_ITALIC; + font = (uchar)(textfont_ | FL_ITALIC); fsize = textsize_; } else if (strcasecmp(buf, "PRE") == 0) @@ -1743,7 +1743,7 @@ Fl_Help_View::format_table(int *table_width, // O - Total table width incell = 1; if (strcasecmp(buf, "TH") == 0) - font = textfont_ | FL_BOLD; + font = (uchar)(textfont_ | FL_BOLD); else font = textfont_; @@ -2061,7 +2061,7 @@ Fl_Help_View::get_color(const char *n, // I - Color name g = (rgb >> 8) & 255; b = rgb & 255; - return (fl_rgb_color(r, g, b)); + return (fl_rgb_color((uchar)r, (uchar)g, (uchar)b)); } else if (strcasecmp(n, "black") == 0) return (FL_BLACK); @@ -2730,5 +2730,5 @@ hscrollbar_callback(Fl_Widget *s, void *) // -// End of "$Id: Fl_Help_View.cxx,v 1.1.2.43 2002/10/11 20:48:14 easysw Exp $". +// End of "$Id: Fl_Help_View.cxx,v 1.1.2.44 2002/11/19 16:37:34 easysw Exp $". // |
