Fixed MSVC 32-bit x86 build, and added it to CI. (#455)

This commit is contained in:
Branimir Karadžić
2026-10-11 20:08:19 -07:00
committed by GitHub
parent 36b2b6943f
commit 326bddbac8
5 changed files with 29 additions and 10 deletions

View File

@@ -344,14 +344,11 @@ TEST_CASE("Format %td", "[string][printf]")
REQUIRE(test("-1", "%td", size) );
if constexpr (4 == sizeof(ptrdiff_t) )
{
REQUIRE(test("-1073741824", "%td", ptrdiff_t(3221225472) ) );
}
else
{
REQUIRE(test("3221225472", "%td", ptrdiff_t(3221225472) ) );
}
#if BX_ARCH_32BIT
REQUIRE(test("-1073741824", "%td", ptrdiff_t(-1073741824) ) );
#else
REQUIRE(test("3221225472", "%td", ptrdiff_t(3221225472) ) );
#endif // BX_ARCH_32BIT
}
TEST_CASE("Format %n", "[string][printf]")