mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
another set of tweaks per review comments
This commit is contained in:
parent
d4eb0224a1
commit
7904701ffb
5 changed files with 8 additions and 11 deletions
|
@ -2120,8 +2120,7 @@ ExprPtr ArithCoerceExpr::Reduce(Reducer* c, StmtPtr& red_stmt)
|
|||
|
||||
if ( IsArithmetic(t->Tag()) || IsArithmetic(ct->Tag()) )
|
||||
{
|
||||
auto v = FoldSingleVal(cv, t);
|
||||
if ( v )
|
||||
if ( auto v = FoldSingleVal(cv, t) )
|
||||
return make_intrusive<ConstExpr>(v);
|
||||
// else there was a coercion error, fall through
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue