summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util/path_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/util/path_helpers.cc')
-rw-r--r--chrome/browser/sync/util/path_helpers.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/sync/util/path_helpers.cc b/chrome/browser/sync/util/path_helpers.cc
index 1cf8d4e..cafcfca 100644
--- a/chrome/browser/sync/util/path_helpers.cc
+++ b/chrome/browser/sync/util/path_helpers.cc
@@ -71,7 +71,7 @@ PathString ExpandTilde(const PathString& path) {
// Returns a string with length or fewer elements, careful to
// not truncate a string mid-surrogate pair.
PathString TruncatePathString(const PathString& original, int length) {
- if (original.size() <= length)
+ if (original.size() <= static_cast<size_t>(length))
return original;
if (length <= 0)
return original;