[flang] Fix error is Negation on integer

The minus sign was missing.

Original-commit: flang-compiler/f18@5fa0a97de5
Reviewed-on: https://github.com/flang-compiler/f18/pull/238
Tree-same-pre-rewrite: false
This commit is contained in:
Tim Keith 2018-12-05 13:11:55 -08:00
parent 1c856ac972
commit d6b37b1967
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ std::optional<Expr<SomeType>> Negation(
messages.Say("BOZ literal cannot be negated"_err_en_US);
return NoExpr();
},
[&](Expr<SomeInteger> &&x) { return Package(std::move(x)); },
[&](Expr<SomeInteger> &&x) { return Package(-std::move(x)); },
[&](Expr<SomeReal> &&x) { return Package(-std::move(x)); },
[&](Expr<SomeComplex> &&x) { return Package(-std::move(x)); },
[&](Expr<SomeCharacter> &&x) {