Skip to content

Commit

Permalink
Fix linux types demangling
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Feb 1, 2025
1 parent 99baa00 commit dd83b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/type-string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static std::string typeToString(std::type_index type)
#ifdef __GNUG__
int status = -4;
auto demangledName = abi::__cxa_demangle(name, nullptr, nullptr, &status);
if (status != 0)
if (status == 0)
name = demangledName;
#endif

Expand Down

0 comments on commit dd83b0c

Please sign in to comment.