macro processor: fix typo that caused logical or not to work when one of the arguments is Real == 1 and other arguments are false

issue#70
Houtan Bastani 2019-11-26 10:39:16 +01:00
parent 8034513578
commit 4e3bf09495
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ Real::logical_and(const BaseTypePtr &btp) const
BoolPtr
Real::logical_or(const BaseTypePtr &btp) const
{
if (auto btp2 = dynamic_pointer_cast<Real>(btp); !btp2)
if (auto btp2 = dynamic_pointer_cast<Real>(btp); btp2)
return make_shared<Bool>(value || *btp2, env);
if (auto btp2 = dynamic_pointer_cast<Bool>(btp); btp2)