From 507ba018110337140484fb4cb3f8ef56a352be98 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Fri, 5 Aug 2022 11:48:01 -0400 Subject: [PATCH] revert token test's asset warning fix for now --- unittests/eosio.token_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/eosio.token_tests.cpp b/unittests/eosio.token_tests.cpp index fd909ff143..29526fe173 100644 --- a/unittests/eosio.token_tests.cpp +++ b/unittests/eosio.token_tests.cpp @@ -152,7 +152,7 @@ BOOST_FIXTURE_TEST_CASE( create_max_supply, eosio_token_tester ) try { share_type amount = 4611686018427387904; static_assert(sizeof(share_type) <= sizeof(asset), "asset changed so test is no longer valid"); static_assert(std::is_trivially_copyable::value, "asset is not trivially copyable"); - memcpy((char*)&max, &amount, sizeof(share_type)); // hack in an invalid amount + memcpy(&max, &amount, sizeof(share_type)); // hack in an invalid amount BOOST_CHECK_EXCEPTION( create( "alice"_n, max) , asset_type_exception, [](const asset_type_exception& e) { return expect_assert_message(e, "magnitude of asset amount must be less than 2^62"); @@ -177,7 +177,7 @@ BOOST_FIXTURE_TEST_CASE( create_max_decimals, eosio_token_tester ) try { share_type amount = 0x8ac7230489e80000L; static_assert(sizeof(share_type) <= sizeof(asset), "asset changed so test is no longer valid"); static_assert(std::is_trivially_copyable::value, "asset is not trivially copyable"); - memcpy((char*)&max, &amount, sizeof(share_type)); // hack in an invalid amount + memcpy(&max, &amount, sizeof(share_type)); // hack in an invalid amount BOOST_CHECK_EXCEPTION( create( "alice"_n, max) , asset_type_exception, [](const asset_type_exception& e) { return expect_assert_message(e, "magnitude of asset amount must be less than 2^62");