about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index fe03cd268..29e088c70 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -1048,7 +1048,7 @@ zccmd_input(const char *nam, char **args)
 #ifdef NCURSES_MOUSE_VERSION
 	if (!(zcurses_flags & ZCF_MOUSE_ACTIVE) ||
 	    (zcurses_flags & ZCF_MOUSE_MASK_CHANGED)) {
-	    if (mousemask(zcurses_mouse_mask, NULL) == ERR) {
+	    if (mousemask(zcurses_mouse_mask, NULL) == (mmask_t)ERR) {
 		zwarnnam(nam, "current mouse mode is not supported");
 		return 1;
 	    }