fix windows assert

This commit is contained in:
Arvid Norberg 2011-06-17 06:55:40 +00:00
parent ec30fe5f9b
commit 67b79cdd69
1 changed files with 1 additions and 1 deletions

View File

@ -794,7 +794,7 @@ namespace libtorrent
m_path = convert_to_native(path);
#endif
TORRENT_ASSERT((mode & mode_mask) < sizeof(mode_array)/sizeof(mode_array[0]));
TORRENT_ASSERT((mode & rw_mask) < sizeof(mode_array)/sizeof(mode_array[0]));
open_mode_t const& m = mode_array[mode & rw_mask];
DWORD a = attrib_array[(mode & attribute_mask) >> 12];