Skip to content
Snippets Groups Projects
Commit 91114aaf authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

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).
parent 47977472
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4154 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment