From c0496ac63b6ae53ca3dd4067b64c3884d5bc3edd Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 14 Sep 2012 21:51:50 +0000 Subject: [PATCH] Fix compile warning in CefByteReadHandler::Read. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@783 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef_dll/wrapper/cef_byte_read_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcef_dll/wrapper/cef_byte_read_handler.cc b/libcef_dll/wrapper/cef_byte_read_handler.cc index 8ae5b2d8b..2d0b2085a 100644 --- a/libcef_dll/wrapper/cef_byte_read_handler.cc +++ b/libcef_dll/wrapper/cef_byte_read_handler.cc @@ -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_ - offset_) / size; size_t ret = std::min(n, s); memcpy(ptr, bytes_ + offset_, ret * size); offset_ += ret * size;