Fix the AppVeyor build of develop with VS 2015 and VS 2017 (#6154)

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann authored and GitHub committed 2026-11-23 08:21:01 +01:00
1 parent d957a10f55
commit 90987b2a63
3 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -622,7 +622,7 @@ TEST_CASE("BON8")
// with a terminated string, strict = false leaves the next value in the stream
std::istringstream terminated(std::string("\x61\xFF\x90", 3));
CHECK(json::from_bon8(terminated, false) == "a");
CHECK((terminated.tellg() == 2));
CHECK(static_cast<std::streamoff>(terminated.tellg()) == 2);
CHECK(json::from_bon8(terminated, false) == 0);
// without the terminator, the next value would be lost