diff options
| author | Saagar Jha <saagar@saagarjha.com> | 2023-11-29 01:37:16 -0800 |
|---|---|---|
| committer | Glenn Smith <couleeapps@gmail.com> | 2024-01-05 13:25:39 -0500 |
| commit | 92b817b784d2aedc1bfa942c30dcc0c05042458d (patch) | |
| tree | f652a94f778390487b4b36be4564d36d5878f2ba /binaryninjaapi.h | |
| parent | ab12527cffa04b04ac282d64b2eb30391808757a (diff) | |
Fix formatters for BinaryNinja::Confidence
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 2f255cb9..3a4e0879 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -16350,8 +16350,7 @@ template<typename T> struct fmt::formatter<BinaryNinja::Confidence<T>> { format_context::iterator format(const BinaryNinja::Confidence<T>& obj, format_context& ctx) const { - fmt::formatter<T>().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<typename T> struct fmt::formatter<BinaryNinja::Confidence<BinaryNinja:: { format_context::iterator format(const BinaryNinja::Confidence<BinaryNinja::Ref<T>>& obj, format_context& ctx) const { - fmt::formatter<T>().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(); } }; |
