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
path: root/emubd
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2018-10-21 05:02:25 +0300
committerChristopher Haster <chaster@utexas.edu>2018-10-21 05:02:25 +0300
commitc8a39c4b23baa2b1dc5f41c8d0711e205035f4f4 (patch)
treea77722fb5c1b9175fb59e862abdd4c65dfb15a09 /emubd
parent795dd8c7ab930892536c6c2ee7c29b8bfac477db (diff)
parentec4d8b68add6a7de021dc09ef08123ab323cbc38 (diff)
Merge remote-tracking branch 'origin/master' into v2-rebase-part2
Diffstat (limited to 'emubd')
-rw-r--r--emubd/lfs_emubd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emubd/lfs_emubd.c b/emubd/lfs_emubd.c
index de63057..3f31bfa 100644
--- a/emubd/lfs_emubd.c
+++ b/emubd/lfs_emubd.c
@@ -30,7 +30,7 @@ static inline void lfs_emubd_tole32(lfs_emubd_t *emu) {
emu->stats.prog_count = lfs_tole32(emu->stats.prog_count);
emu->stats.erase_count = lfs_tole32(emu->stats.erase_count);
- for (int i = 0; i < sizeof(emu->history.blocks) /
+ for (unsigned i = 0; i < sizeof(emu->history.blocks) /
sizeof(emu->history.blocks[0]); i++) {
emu->history.blocks[i] = lfs_tole32(emu->history.blocks[i]);
}
@@ -46,7 +46,7 @@ static inline void lfs_emubd_fromle32(lfs_emubd_t *emu) {
emu->stats.prog_count = lfs_fromle32(emu->stats.prog_count);
emu->stats.erase_count = lfs_fromle32(emu->stats.erase_count);
- for (int i = 0; i < sizeof(emu->history.blocks) /
+ for (unsigned i = 0; i < sizeof(emu->history.blocks) /
sizeof(emu->history.blocks[0]); i++) {
emu->history.blocks[i] = lfs_fromle32(emu->history.blocks[i]);
}