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:
parent
7c80586970
commit
c0496ac63b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue