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 --- mediumlevelilinstruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediumlevelilinstruction.cpp') diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp index ecdac2e8..5e5c28fb 100644 --- a/mediumlevelilinstruction.cpp +++ b/mediumlevelilinstruction.cpp @@ -1116,7 +1116,7 @@ char* MediumLevelILInstructionBase::Dump() const { text += "[instr " + to_string(instructionIndex) + "] "; } - Ref type = GetType(); + Ref type = GetType().GetValue(); if (type) { text += "[type: " + type->GetString() + "] "; @@ -3196,7 +3196,7 @@ fmt::format_context::iterator fmt::formatter::format(c { 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