From a1f2467a87f5ce6b0841b2f0d9dc80a26b689147 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 26 Jan 2022 15:02:15 +0100 Subject: Debug and new tests: - Fix HalfMove memory leak - Fix integer overflow - Update combined tests --- src/PGN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PGN.cpp') 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(); } -- cgit v1.2.3