diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..26d04251 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# GitHub really wants to mark littlefs as a python project, telling it to +# reclassify our test .toml files as C code (which they are 95% of anyways) +# remedies this +*.toml linguist-language=c diff --git a/lfs2.c b/lfs2.c index 2117bc7e..ef476855 100644 --- a/lfs2.c +++ b/lfs2.c @@ -1651,7 +1651,7 @@ static int lfs2_dir_commitcrc(lfs2_t *lfs2, struct lfs2_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; diff --git a/lfs2_util.h b/lfs2_util.h index 659e142c..dd2cbcc1 100644 --- a/lfs2_util.h +++ b/lfs2_util.h @@ -23,7 +23,6 @@ // System includes #include #include -#include #include #include