aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/screen.h4
-rw-r--r--src/screen_utils.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/screen.h b/src/screen.h
index 2a38c07a9..91ee26447 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -15,7 +15,7 @@
struct window {
WINDOW *w;
- int rows, cols;
+ unsigned rows, cols;
};
typedef struct screen {
@@ -30,7 +30,7 @@ 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 301c791c3..c6bfb543c 100644
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
@@ -215,10 +215,10 @@ void
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) {