From 350032fae85456bd12d0d6bc8e674a0ace28455a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sat, 29 Apr 2023 13:51:33 -0400
Subject: [PATCH] Fix warning.

While we're here, eliminate some explicit int64_t usage.

(not sure why uifc_winmode_t is signed since it's a bitfield, but
that's above my pay grade).
---
 src/uifc/uifc32.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index db216392ee..a0ce549930 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -200,7 +200,7 @@ int kbwait(void) {
 }
 
 static int
-dyn_kbwait(mode) {
+dyn_kbwait(uifc_winmode_t mode) {
 	if (mode & WIN_DYN)
 		return kbhit();
 	return kbwait();
@@ -628,7 +628,7 @@ inactive_win(struct vmem_cell *buf, int left, int top, int right, int bottom, in
 /****************************************************************************/
 /* General menu function, see uifc.h for details.							*/
 /****************************************************************************/
-int ulist(int64_t mode, int left, int top, int width, int *cur, int *bar
+int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar
 	, const char *initial_title, char **option)
 {
 	struct vmem_cell *ptr, *win, shade[MAX_LINES*2], line[MAX_COLS];
@@ -706,7 +706,7 @@ int ulist(int64_t mode, int left, int top, int width, int *cur, int *bar
 	api->help_available = (api->helpbuf!=NULL || api->helpixbfile[0]!=0);
 
 	/* Create the status bar/bottom-line */
-	int64_t bline = mode;
+	uifc_winmode_t bline = mode;
 	if (api->bottomline != NULL) {
 		if ((mode&(WIN_XTR | WIN_PASTEXTR)) == WIN_XTR && (*cur) == opts - 1)
 			api->bottomline(bline & ~WIN_PASTE);
-- 
GitLab