Fix compile warning in CefByteReadHandler::Read.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@783 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-09-14 21:51:50 +00:00
parent 7c80586970
commit c0496ac63b
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ CefByteReadHandler::CefByteReadHandler(const unsigned char* bytes, size_t size,
size_t CefByteReadHandler::Read(void* ptr, size_t size, size_t n) {
AutoLock lock_scope(this);
size_t s = (size_ - offset_) / size;
size_t s = static_cast<size_t>(size_ - offset_) / size;
size_t ret = std::min(n, s);
memcpy(ptr, bytes_ + offset_, ret * size);
offset_ += ret * size;