Skip to content

Commit 92b817b

Browse files
saagarjhaCouleeApps
authored andcommitted
Fix formatters for BinaryNinja::Confidence
1 parent ab12527 commit 92b817b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

binaryninjaapi.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16350,8 +16350,7 @@ template<typename T> struct fmt::formatter<BinaryNinja::Confidence<T>>
1635016350
{
1635116351
format_context::iterator format(const BinaryNinja::Confidence<T>& obj, format_context& ctx) const
1635216352
{
16353-
fmt::formatter<T>().format(obj.GetValue(), ctx);
16354-
return fmt::format_to(ctx.out(), " ({} confidence)", ctx);
16353+
return fmt::format_to(ctx.out(), "{} ({} confidence)", obj.GetValue(), obj.GetConfidence());
1635516354
}
1635616355
constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return ctx.begin(); }
1635716356
};
@@ -16360,8 +16359,7 @@ template<typename T> struct fmt::formatter<BinaryNinja::Confidence<BinaryNinja::
1636016359
{
1636116360
format_context::iterator format(const BinaryNinja::Confidence<BinaryNinja::Ref<T>>& obj, format_context& ctx) const
1636216361
{
16363-
fmt::formatter<T>().format(*obj.GetValue().GetPtr(), ctx);
16364-
return fmt::format_to(ctx.out(), " ({} confidence)", ctx);
16362+
return fmt::format_to(ctx.out(), "{} ({} confidence)", *obj.GetValue().GetPtr(), obj.GetConfidence());
1636516363
}
1636616364
constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return ctx.begin(); }
1636716365
};

0 commit comments

Comments
 (0)