Fix some misprints and mistakes in code, part 2 (#1021)
* Fix compiler warnings about broken syntax Revert "Fix compiler warnings about broken syntax" This reverts commit cd0649806feaab064e93a0fbcd1f4488747f9b79. Unbreak code * Unbreak code * Stop breaking code, please * Small real unused check * Fix "breaked" code and fix MAX_WEAPONS misprints * Compiler break in debug mode if passing upper case strings
This commit is contained in:
@ -70,7 +70,7 @@ static ucell hex2long(char *s,char **n)
|
||||
s++;
|
||||
} /* if */
|
||||
|
||||
assert((*s>='0' && *s<='9') || (*s>='a' && *s<='f') || (*s>='a' && *s<='f'));
|
||||
assert((*s>='0' && *s<='9') || (*s>='a' && *s<='f') || (*s>='A' && *s<='F'));
|
||||
for ( ;; ) {
|
||||
if (*s>='0' && *s<='9')
|
||||
digit=*s-'0';
|
||||
|
Reference in New Issue
Block a user