Fix bitwise or on boolean operands warning / error

This commit is contained in:
Ed Hennis
2022-05-27 20:12:11 -04:00
committed by Nik Bougalis
parent 723733a778
commit 1f75ba23ee

View File

@@ -728,7 +728,7 @@ CreateOffer::flowCross(
// additional path with XRP as the intermediate between two books.
// This second path we have to build ourselves.
STPathSet paths;
if (!takerAmount.in.native() & !takerAmount.out.native())
if (!takerAmount.in.native() && !takerAmount.out.native())
{
STPath path;
path.emplace_back(std::nullopt, xrpCurrency(), std::nullopt);