From 65697a29ece801849925ca032691324135fb012f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 10 Jan 2002 23:11:57 +0000 Subject: Made code bool-safe and turned Visual C++ warning 4800 back on. --- src/LexRuby.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexRuby.cxx') diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx index b29eee3bb..44bbf7216 100644 --- a/src/LexRuby.cxx +++ b/src/LexRuby.cxx @@ -21,7 +21,7 @@ static void ClassifyWordRb(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, char *prevWord) { char s[100]; - bool wordIsNumber = isdigit(styler[start]); + bool wordIsNumber = isdigit(styler[start]) != 0; for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) { s[i] = styler[start + i]; s[i + 1] = '\0'; -- cgit v1.2.3