Explorar o código

Merge pull request #819 from benpicco/fix-AVR

Fix build for AVR
Christopher Haster %!s(int64=2) %!d(string=hai) anos
pai
achega
5eed341059
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         // perturb valid bit?
-        commit->ptag = ntag ^ ((0x80 & ~eperturb) << 24);
+        commit->ptag = ntag ^ ((0x80UL & ~eperturb) << 24);
         // reset crc for next commit
         commit->crc = 0xffffffff;