From bd6d0964e77f8235836df471ef84e94bd8bc9087 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Fri, 1 Feb 2013 19:20:34 +0000 Subject: 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 --- src/common/android/testing/mkdtemp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/android/testing/mkdtemp.h') diff --git a/src/common/android/testing/mkdtemp.h b/src/common/android/testing/mkdtemp.h index 063e356f..85644c9f 100644 --- a/src/common/android/testing/mkdtemp.h +++ b/src/common/android/testing/mkdtemp.h @@ -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(path_end - path) < kSuffixLen || memcmp(path_end - kSuffixLen, kSuffix, kSuffixLen) != 0) { errno = EINVAL; return NULL; -- cgit v1.2.1