From c78ff8fce156370388bdde7c530e66c1299b4422 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Wed, 15 Sep 2021 16:26:18 +0200 Subject: [PATCH] Fixed Eclipse warning --- src/raspberrypi/rascsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raspberrypi/rascsi.cpp b/src/raspberrypi/rascsi.cpp index 812b61da..b98d4462 100644 --- a/src/raspberrypi/rascsi.cpp +++ b/src/raspberrypi/rascsi.cpp @@ -740,7 +740,7 @@ bool CreateImage(int fd, const PbCommand& command) catch(const out_of_range& e) { return ReturnStatus(fd, false, "Invalid image file size " + command.params().Get(1)); } - if (len < 512 || len & 0x1ff) { + if (len < 512 || (len & 0x1ff)) { ostringstream error; error << "Invalid image file size " << len; return ReturnStatus(fd, false, error.str());