Fix bug in comparison code

This commit is contained in:
Jonathan Müller 2017-11-08 15:41:35 +01:00
commit e8f7dd0911

View file

@ -90,7 +90,7 @@ void generate_comparison(const cppast::cpp_file& file)
{
if (has_token(attribute.arguments().value(), "=="))
generate_op_equal(std::cout, class_);
else if (has_token(attribute.arguments().value(), "!="))
if (has_token(attribute.arguments().value(), "!="))
generate_op_non_equal(std::cout, class_);
}
else