Эх сурвалжийг харах

Merge pull request #819 from benpicco/fix-AVR

Fix build for AVR
Christopher Haster 2 жил өмнө
parent
commit
5eed341059
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      lfs.c

+ 1 - 1
lfs.c

@@ -1651,7 +1651,7 @@ static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) {
 
 
         commit->off = noff;
         commit->off = noff;
         // perturb valid bit?
         // perturb valid bit?
-        commit->ptag = ntag ^ ((0x80 & ~eperturb) << 24);
+        commit->ptag = ntag ^ ((0x80UL & ~eperturb) << 24);
         // reset crc for next commit
         // reset crc for next commit
         commit->crc = 0xffffffff;
         commit->crc = 0xffffffff;