Merge pull request #14533 from ethereum/fix-std-namespace-asan

Fix missing std qualifier for ASAN
This commit is contained in:
Daniel 2023-09-05 11:04:13 +02:00 committed by GitHub
commit 16ae76cad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,7 +493,7 @@ BOOST_AUTO_TEST_CASE(constant_optimization_early_exit)
#endif #endif
#endif #endif
#if __SANITIZE_ADDRESS__ #if __SANITIZE_ADDRESS__
maxDuration = numeric_limits<size_t>::max(); maxDuration = std::numeric_limits<size_t>::max();
BOOST_TEST_MESSAGE("Disabled constant optimizer run time check for address sanitizer build."); BOOST_TEST_MESSAGE("Disabled constant optimizer run time check for address sanitizer build.");
#endif #endif
BOOST_CHECK_MESSAGE(duration <= double(maxDuration), "Compilation of constants took longer than 20 seconds."); BOOST_CHECK_MESSAGE(duration <= double(maxDuration), "Compilation of constants took longer than 20 seconds.");