This commit is contained in:
aozhiwei 2023-03-04 12:25:53 +08:00
parent 24625f05d1
commit c4610bed76

View File

@ -130,7 +130,7 @@ namespace a8
"*",
[] (const List& params) -> std::shared_ptr<Value>
{
double result = 0;
double result = params->empty() ? 0 : 1;
for (auto param : *params) {
Atom&& atom = std::any_cast<Atom>(param->value);
result *= atom.val;