From 34cd4a484e532cc463fd5a4bf59b88d13c5467c1 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 5 May 2008 18:30:58 +0000 Subject: Fix more -Wshorten-64-to-32 warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/StringExtras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support/StringExtras.cpp') diff --git a/lib/Support/StringExtras.cpp b/lib/Support/StringExtras.cpp index 1fae4fae48..d403a083d4 100644 --- a/lib/Support/StringExtras.cpp +++ b/lib/Support/StringExtras.cpp @@ -22,7 +22,7 @@ using namespace llvm; /// The Source source string is updated in place to remove the returned string /// and any delimiter prefix from it. std::string llvm::getToken(std::string &Source, const char *Delimiters) { - unsigned NumDelimiters = std::strlen(Delimiters); + size_t NumDelimiters = std::strlen(Delimiters); // Figure out where the token starts. std::string::size_type Start = -- cgit v1.2.3-18-g5258