summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fdb5dfc)
raw | patch | inline | side by side (parent: fdb5dfc)
author | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:39:01 +0000 (10:39 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:39:01 +0000 (10:39 +0200) |
Store screen width and height as unsigned integer.
src/screen.h | patch | blob | history | |
src/screen_utils.c | patch | blob | history |
diff --git a/src/screen.h b/src/screen.h
index 2a38c07a90b5111ca51c97437e1e969693878405..91ee26447d68709b99b6e35f0b9ee9a8f440eba6 100644 (file)
--- a/src/screen.h
+++ b/src/screen.h
struct window {
WINDOW *w;
- int rows, cols;
+ unsigned rows, cols;
};
typedef struct screen {
command_t last_cmd;
- int cols, rows;
+ unsigned cols, rows;
int mode;
diff --git a/src/screen_utils.c b/src/screen_utils.c
index 301c791c3791073b54da951e588f8e5eb3812d07..c6bfb543c8d7b6bdc1cc6517e1a365e265cfb7b0 100644 (file)
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
screen_display_completion_list(screen_t *screen, GList *list)
{
static GList *prev_list = NULL;
- static gint prev_length = 0;
- static gint offset = 0;
+ static guint prev_length = 0;
+ static guint offset = 0;
WINDOW *w = screen->main_window.w;
- gint length, y=0;
+ guint length, y=0;
length = g_list_length(list);
if (list == prev_list && length == prev_length) {