From ccbd045f02ba5fcad28641ce238e1494198ef196 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Mon, 24 Sep 2018 10:03:29 -0600 Subject: [PATCH] Fixed warning about comparing signed to unsigned (#11909) --- Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp b/Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp index a5ec410e2f..dfc7842ffd 100644 --- a/Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp +++ b/Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp @@ -815,7 +815,7 @@ static bool ee_Write(uint32_t address, uint8_t data) { // Maybe we could coalesce the next block with this block. Let's try to do it! uint16_t inext = i + 3 + blen; if (inext <= (PageSize - 4) && - (buffer[inext] | (uint16_t(buffer[inext + 1]) << 8)) == (baddr + blen + 1)) { + (buffer[inext] | uint16_t(buffer[inext + 1] << 8)) == (baddr + blen + 1)) { // YES! ... we can coalesce blocks! . Do it! // Adjust this block header to include the next one