Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Pugh <bnp117@gmail.com>2023-10-30 21:18:20 +0300
committerBrian Pugh <bnp117@gmail.com>2023-10-30 21:18:20 +0300
commitc531a5e88f09e71f948725131ec47bb5776d6108 (patch)
tree97ef7485db3b6cce4c24973ee8520f858582207c
parent8f9427dd53cc3f5eb9194f1235e6357fab5b476d (diff)
Replace erroneous LFS_FILE_MAX upper bound 4294967296 to 4294967295
-rw-r--r--lfs.c4
-rw-r--r--lfs.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lfs.c b/lfs.c
index 6c517a4..a18752c 100644
--- a/lfs.c
+++ b/lfs.c
@@ -13,8 +13,8 @@
#error "LFS_NAME_MAX must be in the range (0, 1022]"
#endif
-#if (LFS_FILE_MAX <= 0) || (LFS_FILE_MAX > 4294967296)
-#error "LFS_FILE_MAX must be in the range (0, 4294967296]"
+#if (LFS_FILE_MAX <= 0) || (LFS_FILE_MAX > 4294967295)
+#error "LFS_FILE_MAX must be in the range (0, 4294967295]"
#endif
#if (LFS_FILE_MAX > 2147483647)
diff --git a/lfs.h b/lfs.h
index 9eeab23..d7f6136 100644
--- a/lfs.h
+++ b/lfs.h
@@ -52,7 +52,7 @@ typedef uint32_t lfs_block_t;
#endif
// Maximum size of a file in bytes, may be redefined to limit to support other
-// drivers. Limited on disk to <= 4294967296. However, above 2147483647 the
+// drivers. Limited on disk to <= 4294967295. However, above 2147483647 the
// functions lfs_file_seek, lfs_file_size, and lfs_file_tell will return
// incorrect values due to using signed integers. Stored in superblock and
// must be respected by other littlefs drivers.