diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
commit | 591bfc8aa66d4d415be0d947e2764bcc9f5e25b7 (patch) | |
tree | eefdfb1d225da0317e7f7912079c430b5c3ed92c /include/llvm/System/Path.h | |
parent | d2dcb090a5db3cf20f4b74cc5c31424f758a7fa6 (diff) | |
download | external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.zip external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.tar.gz external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.tar.bz2 |
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r-- | include/llvm/System/Path.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index f4487c4..37c42aa 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -207,14 +207,14 @@ namespace sys { /// @returns true if \p this and \p that refer to the same thing. /// @brief Equality Operator bool operator==(const Path &that) const { - return 0 == path.compare(that.path); + return path == that.path; } /// Compares \p this Path with \p that Path for inequality. /// @returns true if \p this and \p that refer to different things. /// @brief Inequality Operator bool operator!=(const Path &that) const { - return 0 != path.compare(that.path); + return path != that.path; } /// Determines if \p this Path is less than \p that Path. This is required @@ -224,7 +224,7 @@ namespace sys { /// @returns true if \p this path is lexicographically less than \p that. /// @brief Less Than Operator bool operator<(const Path& that) const { - return 0 > path.compare(that.path); + return path < that.path; } /// @} @@ -288,7 +288,7 @@ namespace sys { const char *c_str() const { return path.c_str(); } /// size - Return the length in bytes of this path name. - unsigned size() const { return path.size(); } + size_t size() const { return path.size(); } /// empty - Returns true if the path is empty. unsigned empty() const { return path.empty(); } |