chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Render Filling presets as 'WxH', not 'HxW'.
[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 != ',')