diff options
author | Pablo Barciela <[email protected]> | 2019-03-31 03:21:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-19 23:18:12 +0200 |
commit | 9089dd7acc02a75438f230f8346867607eaf492b (patch) | |
tree | f39c05fc5d8f73bb164001e52320e1a8acf072ff /libcaja-private | |
parent | bc55be6a7cace886cdf5c47f269f087d1532e72f (diff) | |
download | caja-9089dd7acc02a75438f230f8346867607eaf492b.tar.bz2 caja-9089dd7acc02a75438f230f8346867607eaf492b.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
Diffstat (limited to 'libcaja-private')
-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 1fcf00fb..337eeb30 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 |