From 92b817b784d2aedc1bfa942c30dcc0c05042458d Mon Sep 17 00:00:00 2001 From: Saagar Jha Date: Wed, 29 Nov 2023 01:37:16 -0800 Subject: Fix formatters for BinaryNinja::Confidence --- binaryninjaapi.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 2f255cb9..3a4e0879 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -16350,8 +16350,7 @@ template struct fmt::formatter> { format_context::iterator format(const BinaryNinja::Confidence& obj, format_context& ctx) const { - fmt::formatter().format(obj.GetValue(), ctx); - return fmt::format_to(ctx.out(), " ({} confidence)", ctx); + return fmt::format_to(ctx.out(), "{} ({} confidence)", obj.GetValue(), obj.GetConfidence()); } constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return ctx.begin(); } }; @@ -16360,8 +16359,7 @@ template struct fmt::formatter>& obj, format_context& ctx) const { - fmt::formatter().format(*obj.GetValue().GetPtr(), ctx); - return fmt::format_to(ctx.out(), " ({} confidence)", ctx); + return fmt::format_to(ctx.out(), "{} ({} confidence)", *obj.GetValue().GetPtr(), obj.GetConfidence()); } constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return ctx.begin(); } }; -- cgit v1.3.1