Fix some issues with -Werror=sign-compare on Android builds

R=digit at https://breakpad.appspot.com/524002/

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1110 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek@gmail.com 2013-02-01 19:20:34 +00:00
parent 00407e09c7
commit bd6d0964e7
3 changed files with 14 additions and 9 deletions

View file

@ -57,7 +57,7 @@ char* mkdtemp(char* path) {
const size_t kSuffixLen = strlen(kSuffix);
char* path_end = path + strlen(path);
if (path_end - path < kSuffixLen ||
if (static_cast<size_t>(path_end - path) < kSuffixLen ||
memcmp(path_end - kSuffixLen, kSuffix, kSuffixLen) != 0) {
errno = EINVAL;
return NULL;