diff options
author | Pablo Barciela <[email protected]> | 2019-03-31 03:21:37 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2019-07-23 16:21:04 +0300 |
commit | 6ec797480806fae394d0ff086cf3923655fd7bdd (patch) | |
tree | 6c3e35c199985e53e1a01076ca4da1a1d0c97ad2 | |
parent | cd14d61be16ab05f64d7639ffaf586361ba8c4a7 (diff) | |
download | caja-6ec797480806fae394d0ff086cf3923655fd7bdd.tar.bz2 caja-6ec797480806fae394d0ff086cf3923655fd7bdd.tar.xz |
caja-file: avoid shifting signed 32-bit value by 31 bits
Fixes cppcheck warnings:
[libcaja-private/caja-file.c:288]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[libcaja-private/caja-file.c:334]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[libcaja-private/caja-file.c:386]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[libcaja-private/caja-file.c:3789]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
-rw-r--r-- | libcaja-private/caja-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 4e29ab36..a69701e5 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -98,7 +98,7 @@ /* Name of Caja trash directories */ #define TRASH_DIRECTORY_NAME ".Trash" -#define METADATA_ID_IS_LIST_MASK (1<<31) +#define METADATA_ID_IS_LIST_MASK (1U<<31) #define SORT_BY_EXTENSION_FOLLOWING_MAX_LENGTH 3 #define SORT_BY_EXTENSION_MAX_SEGMENTS 3 |