Convert long_const_operation to use gdb_mpz

This changes long_const_operation to use gdb_mpz for its storage.
This commit is contained in:
Tom Tromey
2023-03-27 12:54:51 -06:00
parent 767c4b92bc
commit 5309ce2f04
4 changed files with 33 additions and 7 deletions

View File

@@ -10590,10 +10590,10 @@ ada_char_operation::replace (operation_up &&owner,
if (context_type != nullptr && context_type->code () == TYPE_CODE_ENUM)
{
LONGEST val = as_longest ();
gdb_assert (result.get () == this);
std::get<0> (m_storage) = context_type;
std::get<1> (m_storage)
= convert_char_literal (context_type, std::get<1> (m_storage));
std::get<1> (m_storage) = convert_char_literal (context_type, val);
}
return result;