X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fwindows.c;h=64e610847a270313b21990660a3cec081ef4e95f;hb=45b98ea91cf2075e33dc2bfd302a701a959feb36;hp=50a48e3e5fc8afc810a0982495a7121ec103dc1f;hpb=76642a2046d8f9a4774cd561ea2899a2890b3370;p=plomrogue diff --git a/src/windows.c b/src/windows.c index 50a48e3..64e6108 100644 --- a/src/windows.c +++ b/src/windows.c @@ -81,8 +81,8 @@ static uint8_t refit_pad(struct WinMeta * wmeta) /* Only resize the pad if the rightmost window column has changed. */ if (getmaxx(wmeta->padframe.curses_win) != lastwincol) { - if (lastwincol + 2 > UINT16_MAX) /* Abort if pad would grow beyond */ - { /* yx_uint16 confines. */ + if (lastwincol + 2 > UINT16_MAX) + { return 2; } return (ERR == wresize(wmeta->padframe.curses_win,