From 1f75ba23ee256a81d190e7fa47582e6f1ea2400f Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Fri, 27 May 2022 20:12:11 -0400 Subject: [PATCH] Fix bitwise or on boolean operands warning / error --- src/ripple/app/tx/impl/CreateOffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/tx/impl/CreateOffer.cpp b/src/ripple/app/tx/impl/CreateOffer.cpp index 4ec41f2b35..9bb7532852 100644 --- a/src/ripple/app/tx/impl/CreateOffer.cpp +++ b/src/ripple/app/tx/impl/CreateOffer.cpp @@ -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);