summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linenoise/linenoise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index 4a624ad9..50830bef 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -1303,7 +1303,7 @@ static void move_cursor(lino_t *l, int npos)
static int scan_match_rev(const wchar_t *s, int i, wchar_t mch)
{
while (i > 0) {
- int ch = s[--i];
+ wchar_t ch = s[--i];
if (ch == mch)
return i;
@@ -1348,7 +1348,7 @@ static int scan_rev(const wchar_t *s, int i)
static int scan_match_fwd(const wchar_t *s, int i, wchar_t mch)
{
while (s[++i]) {
- int ch = s[i];
+ wchar_t ch = s[i];
if (ch == mch)
return i;