浏览代码

Fixed warning about comparing signed to unsigned (#11909)

Marcio Teixeira 6 年前
父节点
当前提交
ccbd045f02
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp

+ 1
- 1
Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp 查看文件

@@ -815,7 +815,7 @@ static bool ee_Write(uint32_t address, uint8_t data) {
815 815
           //  Maybe we could coalesce the next block with this block. Let's try to do it!
816 816
           uint16_t inext = i + 3 + blen;
817 817
           if (inext <= (PageSize - 4) &&
818
-            (buffer[inext] | (uint16_t(buffer[inext + 1]) << 8)) == (baddr + blen + 1)) {
818
+            (buffer[inext] | uint16_t(buffer[inext + 1] << 8)) == (baddr + blen + 1)) {
819 819
             // YES! ... we can coalesce blocks! . Do it!
820 820
 
821 821
             // Adjust this block header to include the next one

正在加载...
取消
保存