From 35610da204096b3f29ae4dcf6ea42d9a53e3288e Mon Sep 17 00:00:00 2001 From: Ian Ray Date: Thu, 23 May 2013 21:11:10 +0300 Subject: [PATCH] Fix wchar_t cast --- input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.cpp b/input.cpp index 2a9ac010b..d08f9d600 100644 --- a/input.cpp +++ b/input.cpp @@ -388,7 +388,7 @@ void input_destroy() static wint_t input_exec_binding(const input_mapping_t &m, const wcstring &seq) { wchar_t code = input_function_get_code(m.command); - if (code != -1) + if (code != (wchar_t)-1) { switch (code) {