fixed -Wshorten-64-to-32 in 32 bits and explicit nullptr check

This commit is contained in:
Alden Torres 2017-08-03 20:25:33 -04:00 committed by Arvid Norberg
parent ae0baff5a3
commit 35232a5a5f
1 changed files with 2 additions and 2 deletions

View File

@ -414,9 +414,9 @@ static_assert(!(open_mode::sparse & open_mode::attribute_mask), "internal flags
#else
struct dirent* de;
errno = 0;
if ((de = ::readdir(m_handle)))
if ((de = ::readdir(m_handle)) != nullptr)
{
m_inode = de->d_ino;
m_inode = static_cast<ino_t>(de->d_ino);
m_name = de->d_name;
}
else