aboutsummaryrefslogtreecommitdiff
path: root/src/PGN.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-26 15:02:15 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-26 15:02:15 +0100
commita1f2467a87f5ce6b0841b2f0d9dc80a26b689147 (patch)
tree56a653dbabea84c8dda9c2259dc9ddd554cbf001 /src/PGN.cpp
parentf4f436870f9ce0368d81c504e93b012e3928a851 (diff)
Debug and new tests:
- Fix HalfMove memory leak - Fix integer overflow - Update combined tests
Diffstat (limited to 'src/PGN.cpp')
-rw-r--r--src/PGN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PGN.cpp b/src/PGN.cpp
index aac5614..79d599d 100644
--- a/src/PGN.cpp
+++ b/src/PGN.cpp
@@ -45,7 +45,7 @@ void PGN::ParseNextGame() {
if (IS_EOF) {
throw NoGameFound();
}
- int loc = NextNonBlank(LastGameEndLoc);
+ long loc = NextNonBlank(LastGameEndLoc);
if (IS_EOF) {
throw NoGameFound();
}