From 6ec797480806fae394d0ff086cf3923655fd7bdd Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 31 Mar 2019 03:21:37 +0200 Subject: 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 --- libcaja-private/caja-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1