diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:30 +0200 |
commit | e7981e0e28541e5046c40879a4fdbcc308f143ec (patch) | |
tree | 86a4fe788f692321e6a6fbaff8d83708ba764234 /src/screen.c | |
parent | 6e81a1b3e08a423c6f4c6976aecae915bd1a3f0b (diff) | |
download | mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.tar.gz mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.tar.xz mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.zip |
use size_t and unsigned integers
Diffstat (limited to '')
-rw-r--r-- | src/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c index d952a1fe4..3db9730e8 100644 --- a/src/screen.c +++ b/src/screen.c @@ -258,7 +258,7 @@ static void paint_top_window(const char *header, mpdclient_t *c, int full_repaint) { static int prev_volume = -1; - static int prev_header_len = -1; + static size_t prev_header_len = -1; WINDOW *w = screen->top_window.w; if (prev_header_len!=my_strlen(header)) { @@ -385,7 +385,7 @@ paint_status_window(mpdclient_t *c) colors_use(w, COLOR_STATUS); /* scroll if the song name is to long */ - if (options.scroll && my_strlen(songname) > width) { + if (options.scroll && my_strlen(songname) > (size_t)width) { static scroll_state_t st = { 0, 0 }; char *tmp = strscroll(songname, options.scroll_sep, width, &st); @@ -809,7 +809,7 @@ screen_get_mouse_event(mpdclient_t *c, } /* if the even occured below the list window move down */ - if (*row >= lw->rows && lw) { + if ((unsigned)*row >= lw->rows && lw) { if (event.bstate & BUTTON3_CLICKED) list_window_last(lw, lw_length); else |