diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-15 08:26:49 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-15 08:26:49 +0100 |
| commit | 52c2fd4521d33616514dc2a43ad1ee432ce16275 (patch) | |
| tree | b8a59aeab25285a4547d393e58675981cc212960 /src/LargeFileStream.cpp | |
| parent | ef75681956ae842cbf1b2b357374aa34e3361448 (diff) | |
Debug PGN parsing from a string. Add the ParseSANMoves() function. Add a new tests set
Diffstat (limited to 'src/LargeFileStream.cpp')
| -rw-r--r-- | src/LargeFileStream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LargeFileStream.cpp b/src/LargeFileStream.cpp index 3ae1ce2..099c013 100644 --- a/src/LargeFileStream.cpp +++ b/src/LargeFileStream.cpp @@ -37,8 +37,9 @@ char LargeFileStream::operator[](loctype loc) { if (use_string) { if (loc >= content.size()) { eof = true; + return ('?'); } - return ('?'); + return (content[loc]); } // Goto the right memory chuck |
