diff options
author | Hu Weiwen <sehuww@mail.scut.edu.cn> | 2021-01-31 17:47:32 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@aol.com> | 2021-02-07 00:20:47 +0800 |
commit | 738d58438400a9f7bcc18a0d4796e9ed1730995a (patch) | |
tree | 7a2f379c73a47021e749da88bc5686dad1f8984d | |
parent | 36aee0fa2c3a72cfe141fa1f0edb89ec8bf70df4 (diff) | |
download | erofs-utils-738d58438400a9f7bcc18a0d4796e9ed1730995a.tar.gz |
erofs-utils: fix BUILD_BUG_ON
Link: https://lore.kernel.org/r/20210131094732.168784-1-sehuww@mail.scut.edu.cn
Signed-off-by: Hu Weiwen <sehuww@mail.scut.edu.cn>
Reviewed-by: Gao Xiang <hsiangkao@aol.com>
Reviewed-by: Li Guifu <bluce.lee@aliyun.com>
Signed-off-by: Gao Xiang <hsiangkao@aol.com>
-rw-r--r-- | include/erofs/defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/erofs/defs.h b/include/erofs/defs.h index b54cd9d..2e40944 100644 --- a/include/erofs/defs.h +++ b/include/erofs/defs.h @@ -87,7 +87,7 @@ typedef int64_t s64; #ifndef __OPTIMIZE__ #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2 * !!(condition)])) #else -#define BUILD_BUG_ON(condition) assert(condition) +#define BUILD_BUG_ON(condition) assert(!(condition)) #endif #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) |