From c41f264a1dba68c89b4a224a70e3a5783f7fa879 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 24 Jun 2025 17:55:48 -0400 Subject: Remove implicit conversions from Confidence to underlying type, these can cause bugs and also issues with C++20 --- highlevelilinstruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'highlevelilinstruction.cpp') diff --git a/highlevelilinstruction.cpp b/highlevelilinstruction.cpp index 33c5db29..ce0e72ee 100644 --- a/highlevelilinstruction.cpp +++ b/highlevelilinstruction.cpp @@ -940,7 +940,7 @@ char* HighLevelILInstructionBase::Dump() const { text += "[instr " + to_string(instructionIndex) + "] "; } - Ref type = GetType(); + Ref type = GetType().GetValue(); if (type) { text += "[type: " + type->GetString() + "] "; @@ -3344,7 +3344,7 @@ fmt::format_context::iterator fmt::formatter::format(con { fmt::format_to(ctx.out(), "[instr {}] ", obj.instructionIndex); } - Ref type = obj.GetType(); + Ref type = obj.GetType().GetValue(); if (type) { fmt::format_to(ctx.out(), "[type: {}] ", type->GetString()); -- cgit v1.3.1