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_File_Input.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_File_Input.cxx')
| -rw-r--r-- | src/Fl_File_Input.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_File_Input.cxx b/src/Fl_File_Input.cxx index 84593e630..27c99f589 100644 --- a/src/Fl_File_Input.cxx +++ b/src/Fl_File_Input.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_File_Input.cxx,v 1.1.2.7 2002/11/14 21:05:21 easysw Exp $" +// "$Id: Fl_File_Input.cxx,v 1.1.2.8 2002/11/19 16:37:34 easysw Exp $" // // File_Input header file for the Fast Light Tool Kit (FLTK). // @@ -128,7 +128,7 @@ Fl_File_Input::update_buttons() { end ++; - buttons_[i] = (int)fl_width(start, end - start); + buttons_[i] = (short)fl_width(start, end - start); if (!i) buttons_[i] += Fl::box_dx(box()) + 6; } @@ -235,7 +235,7 @@ Fl_File_Input::handle_button(int event) // I - Event // Redraw the directory bar... if (event == FL_RELEASE) pressed_ = -1; - else pressed_ = i; + else pressed_ = (short)i; draw_buttons(); @@ -271,5 +271,5 @@ Fl_File_Input::handle_button(int event) // I - Event // -// End of "$Id: Fl_File_Input.cxx,v 1.1.2.7 2002/11/14 21:05:21 easysw Exp $". +// End of "$Id: Fl_File_Input.cxx,v 1.1.2.8 2002/11/19 16:37:34 easysw Exp $". // |
