Skip to content

Commit

Permalink
Fix clang-tidy warnings and code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Aug 22, 2024
1 parent fc34c0c commit 720ce64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bitarchiveitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ auto BitArchiveItem::crc() const -> uint32_t {
// On MSVC, these macros are not defined, so we define them here.
#if !defined(S_ISLNK)
#ifndef S_IFLNK
constexpr auto S_IFLNK = 0xA000;
static constexpr auto S_IFLNK = 0xA000u;
#endif
#ifndef S_IFMT
constexpr auto S_IFMT = 0xF000;
static constexpr auto S_IFMT = 0xF000u;
#endif
#define S_ISLNK( m ) (((m) & S_IFMT) == S_IFLNK)
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/internal/windows.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ constexpr auto HRESULT_WIN32_ERROR_NEGATIVE_SEEK = __HRESULT_FROM_WIN32( ERROR_N

// Note: this needs to be defined on all platforms, as it is a custom file attributes extension defined by p7zip/7-zip.
#ifndef FILE_ATTRIBUTE_UNIX_EXTENSION
constexpr auto FILE_ATTRIBUTE_UNIX_EXTENSION = 0x8000; // As defined by p7zip
constexpr auto FILE_ATTRIBUTE_UNIX_EXTENSION = 0x8000u; // As defined by p7zip
#endif

#endif //WINDOWS_HPP

0 comments on commit 720ce64

Please sign in to comment.