Share some code that is common between integer and
[oota-llvm.git] / lib / Support / StringExtras.cpp
index 1fae4fae488186d313e427496d6ab33d797408d1..d403a083d47f8543515a0a19eee03397e4db9f15 100644 (file)
@@ -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 =