Skip to content

Commit

Permalink
eliminate a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cnjinhao committed Jan 31, 2016
1 parent 345abe7 commit ca5b2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/paint/detail/image_bmp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ namespace nana{ namespace paint
}
}
}

return true;
}

Expand All @@ -324,7 +324,7 @@ namespace nana{ namespace paint
std::unique_ptr<char[]> buffer(new char[static_cast<int>(size)]);

ifs.read(buffer.get(), size);
if (size == ifs.gcount())
if (size == static_cast<std::size_t>(ifs.gcount()))
return open(buffer.get(), size);
}
return false;
Expand Down

0 comments on commit ca5b2e2

Please sign in to comment.