summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-31 03:21:37 +0200
committerZenWalker <[email protected]>2019-04-10 21:12:37 +0200
commitde7e25bc2544d45ff27b08377996787bb44039ae (patch)
tree84958f752636cdae267f6b3d10acb836b5677ee7
parent5993b55a0a5583d48a862fa0bf785e7d95f0d512 (diff)
downloadcaja-de7e25bc2544d45ff27b08377996787bb44039ae.tar.bz2
caja-de7e25bc2544d45ff27b08377996787bb44039ae.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index a7e0e8d8..95d58f25 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