aboutsummaryrefslogtreecommitdiff
path: root/src/common/android/testing/mkdtemp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/android/testing/mkdtemp.h')
-rw-r--r--src/common/android/testing/mkdtemp.h2
1 files changed, 1 insertions, 1 deletions
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<size_t>(path_end - path) < kSuffixLen ||
memcmp(path_end - kSuffixLen, kSuffix, kSuffixLen) != 0) {
errno = EINVAL;
return NULL;