From 7ba0f15f807e40e4113acbf8df0d80f3bd7f5812 Mon Sep 17 00:00:00 2001
From: Yorhel <git@yorhel.nl>
Date: Mon, 29 Jan 2018 11:56:37 +0100
Subject: [PATCH] delete.c: Fix signedness issue in confirmation selection

'char' may be unsigned on some architectures, which will cause the
"overflow check" on decrement to fail.

This would at most result in a confusing UI issue where no confirmation
option appears to be selected.
---
 src/delete.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/delete.c b/src/delete.c
index 336b504..4fc4d13 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -37,7 +37,8 @@
 
 
 static struct dir *root, *nextsel, *curdir;
-static char noconfirm = 0, ignoreerr = 0, state, seloption;
+static char noconfirm = 0, ignoreerr = 0, state;
+static signed char seloption;
 static int lasterrno;
 
 
-- 
GitLab