Skip to content

Commit b6130f0

Browse files
committed
Silence signed/unsigned mismatch warning on Cygwin.
On Cygwin, NTE_BAD_SIGNATURE is defined as HRESULT, which is a signed integer. This produces a signed/unsigned mismatch warning when it is compared against a DWORD error code.
1 parent 3109668 commit b6130f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/directory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ inline bool is_dir_info_class_not_supported(DWORD error)
852852
return error == ERROR_NOT_SUPPORTED || error == ERROR_INVALID_PARAMETER ||
853853
error == ERROR_INVALID_LEVEL || error == ERROR_CALL_NOT_IMPLEMENTED ||
854854
error == ERROR_GEN_FAILURE || error == ERROR_INVALID_FUNCTION ||
855-
error == ERROR_INTERNAL_ERROR || error == NTE_BAD_SIGNATURE;
855+
error == ERROR_INTERNAL_ERROR || error == static_cast< DWORD >(NTE_BAD_SIGNATURE);
856856
}
857857

858858
system::error_code dir_itr_create(boost::intrusive_ptr< detail::dir_itr_imp >& imp, fs::path const& dir, directory_options opts, directory_iterator_params* params, fs::path& first_filename, fs::file_status& sf, fs::file_status& symlink_sf)

0 commit comments

Comments
 (0)