From 3acb327115439bdacbe0e2afcb5a329cfafaa9b1 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 10 Apr 2026 10:53:53 -0400 Subject: [PATCH] resolve a warning on one platform --- win/tty/wintty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 4cbe65a2a..fb9ec4dbf 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -3559,8 +3559,8 @@ assesstty( short *offx, short *offy, long *rows, long *cols, long *maxcol, long *minrow, long *maxrow) { - boolean inuse_only = (invmode & (int) InvInUse) != 0, - show_gold = (invmode & (int) InvShowGold) != 0 + boolean inuse_only = ((int) invmode & (int) InvInUse) != 0, + show_gold = ((int) invmode & (int) InvShowGold) != 0 && !inuse_only; int perminv_minrow = tty_perminv_minrow + (show_gold ? 1 : 0);