From 9089dd7acc02a75438f230f8346867607eaf492b 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 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 -- cgit v1.2.1