chiark / gitweb /
Invert the Fifteen cursor if FIFTEEN_INVERT_CURSOR ~= ^[yY].*$
[sgt-puzzles.git] / flood.c
diff --git a/flood.c b/flood.c
index 557da953b4a275455f7e0e66358fae010aad8ebb..bbba91528bdee8f82e9993f122fa80deb7a72bf7 100644 (file)
--- a/flood.c
+++ b/flood.c
@@ -609,7 +609,7 @@ static char *validate_desc(const game_params *params, const char *desc)
             c = 10 + (c - 'A');
         else
             return "Bad character in grid description";
-        if (c < 0 || c >= params->colours)
+        if ((unsigned)c >= params->colours)
             return "Colour out of range in grid description";
     }
     if (*desc != ',')