fix dot crashing in multiple places

This commit is contained in:
2026-10-07 18:11:39 +03:00
parent 8bc359fed6
commit 0777faa11d
3 changed files with 17 additions and 4 deletions
+8 -2
View File
@@ -377,7 +377,10 @@ void print_token_vector(const std::vector<Expression::Token>& tv)
std::cout << "(" << *tv[i].to_str() << ") ";
}
std::cout << "(" << *tv[i].to_str() << ")\n";
if (tv.size())
{
std::cout << "(" << *tv[i].to_str() << ")\n";
}
}
void print_math_vector(const std::vector<Expression::Token>& tv)
@@ -388,7 +391,10 @@ void print_math_vector(const std::vector<Expression::Token>& tv)
std::cout << *tv[i].to_math_str(); //<< " ";
}
std::cout << *tv[i].to_math_str() << "\n";
if (tv.size())
{
std::cout << *tv[i].to_math_str() << "\n";
}
}
}