mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-04-21 06:13:43 +00:00
Merge pull request #230 from anonymouspage/isdigit-does-not-return-one
isdigit() may return any non-zero result for success
This commit is contained in:
commit
8520b0b42a
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ bool CDmridDir::IsValidDmrid(const char *sz)
|
|||
ok = true;
|
||||
for ( size_t i = 0; (i < n) && ok; i++ )
|
||||
{
|
||||
ok &= ::isdigit(sz[i]);
|
||||
ok = ::isdigit(sz[i]);
|
||||
}
|
||||
}
|
||||
return ok;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue