From 1df13fed15324d3f9e815b84588a758f67834d7f Mon Sep 17 00:00:00 2001 From: "ivan.penkov@gmail.com" Date: Fri, 28 Feb 2014 10:21:20 +0000 Subject: Fixing compiler warnings: - Building Breakpad in Xcode with arm64 architecture. - iOS Patches provided by: Ian Hickson and Greg Vance. R=mark@chromium.org Review URL: https://breakpad.appspot.com/1184003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1286 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/mac/file_id.cc | 2 +- src/common/mac/macho_id.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/mac') diff --git a/src/common/mac/file_id.cc b/src/common/mac/file_id.cc index a2ee320b..c5d7ed56 100644 --- a/src/common/mac/file_id.cc +++ b/src/common/mac/file_id.cc @@ -61,7 +61,7 @@ bool FileID::FileIdentifier(unsigned char identifier[16]) { unsigned char buffer[4096 * 2]; size_t buffer_size = sizeof(buffer); while ((buffer_size = read(fd, buffer, buffer_size) > 0)) { - MD5Update(&md5, buffer, buffer_size); + MD5Update(&md5, buffer, static_cast(buffer_size)); } close(fd); diff --git a/src/common/mac/macho_id.cc b/src/common/mac/macho_id.cc index aa2cfc83..09a2a82e 100644 --- a/src/common/mac/macho_id.cc +++ b/src/common/mac/macho_id.cc @@ -125,7 +125,7 @@ void MachoID::UpdateCRC(unsigned char *bytes, size_t size) { } void MachoID::UpdateMD5(unsigned char *bytes, size_t size) { - MD5Update(&md5_context_, bytes, size); + MD5Update(&md5_context_, bytes, static_cast(size)); } void MachoID::Update(MachoWalker *walker, off_t offset, size_t size) { -- cgit v1.2.1