From 894a9db92f77e0ca1956dda0d54cbfa8fb2d0c6f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 21 Feb 2004 22:10:01 +0000 Subject: Avoid warning when char type is unsigned. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index a07d0bee7..163757c34 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -489,7 +489,7 @@ int Editor::MaxScrollPos() { } } -static inline bool IsControlCharacter(char ch) { +static inline bool IsControlCharacter(int ch) { // iscntrl returns true for lots of chars > 127 which are displayable return ch >= 0 && ch < ' '; } -- cgit v1.2.3