From 52c2fd4521d33616514dc2a43ad1ee432ce16275 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 15 Jan 2023 08:26:49 +0100 Subject: Debug PGN parsing from a string. Add the ParseSANMoves() function. Add a new tests set --- src/LargeFileStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/LargeFileStream.cpp') 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 -- cgit v1.2.3