Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
index 10fb6fd5a134ca267042b6e8bfddd1a4c3dfd3de..dd7569f3e53c37b40a72e1da283df5298df1ab42 100644 |
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
@@ -361,7 +361,7 @@ DOMArrayBuffer* XMLHttpRequest::responseArrayBuffer() |
if (!m_responseArrayBuffer) { |
if (m_binaryResponseBuilder && m_binaryResponseBuilder->size()) { |
RefPtr<DOMArrayBuffer> buffer = DOMArrayBuffer::createUninitialized(m_binaryResponseBuilder->size(), 1); |
- if (!m_binaryResponseBuilder->getAsBytes(buffer->data(), buffer->byteLength())) { |
+ if (!m_binaryResponseBuilder->getAsBytes(buffer->data(), static_cast<size_t>(buffer->byteLength()))) { |
// m_binaryResponseBuilder failed to allocate an ArrayBuffer. |
// We need to crash the renderer since there's no way defined in |
// the spec to tell this to the user. |