From dcae185a000576fc91c12287149e65b7588e925e Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Wed, 12 Feb 2020 11:31:34 -0600 Subject: [PATCH] Fixed typo in LFS_MKTAG_IF_ELSE --- lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs.c b/lfs.c index 1cbcd33e..354cebc7 100644 --- a/lfs.c +++ b/lfs.c @@ -269,7 +269,7 @@ typedef int32_t lfs_stag_t; ((cond) ? LFS_MKTAG(type, id, size) : LFS_MKTAG(LFS_FROM_NOOP, 0, 0)) #define LFS_MKTAG_IF_ELSE(cond, type1, id1, size1, type2, id2, size2) \ - ((cond) ? LFS_MKTAG(type, id, size) : LFS_MKTAG(type2, id2, size2)) + ((cond) ? LFS_MKTAG(type1, id1, size1) : LFS_MKTAG(type2, id2, size2)) static inline bool lfs_tag_isvalid(lfs_tag_t tag) { return !(tag & 0x80000000);