projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
79bb441
)
Allow empty bitboards in config
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 25 Aug 2023 17:44:22 +0000 (19:44 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 25 Aug 2023 17:44:22 +0000 (19:44 +0200)
src/parser.cpp
patch
|
blob
|
history
diff --git
a/src/parser.cpp
b/src/parser.cpp
index
9be7e00
..
a39cf39
100644
(file)
--- a/
src/parser.cpp
+++ b/
src/parser.cpp
@@
-114,7
+114,7
@@
namespace {
int rank;
std::stringstream ss(value);
target = 0;
- while (!ss.eof() && ss >> file && ss >> rank)
+ while (!ss.eof() && ss >> file && file != '-' && ss >> rank)
{
if (Rank(rank - 1) > RANK_MAX || (file != '*' && File(tolower(file) - 'a') > FILE_MAX))
return false;