Fixed Eclipse warning

This commit is contained in:
Uwe Seimet 2021-09-15 16:26:18 +02:00
parent f178221aff
commit c78ff8fce1

View File

@ -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());