From 25a3560e44aa41dd38b5e2a525ca6bfded55abd5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 8 Sep 2003 12:40:02 +0000 Subject: Avoid warning by promoting char to int. --- src/LexLua.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexLua.cxx b/src/LexLua.cxx index 926557750..3781eed83 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -39,7 +39,7 @@ static inline bool IsANumberChar(const int ch) { ch == '.' || ch == '-' || ch == '+'); } -static inline bool IsLuaOperator(char ch) { +static inline bool IsLuaOperator(int ch) { if (ch >= 0x80 || isalnum(ch)) { return false; } -- cgit v1.2.3