From: Mon P Wang Date: Sat, 25 Apr 2009 20:46:59 +0000 (+0000) Subject: size() should return a size_t; avoids a warning for 64 bit machines. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8d34844bff997d9587c4d64339f110908e4e720f;p=oota-llvm.git size() should return a size_t; avoids a warning for 64 bit machines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index f5c265570e6..ae3a85bc386 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -845,7 +845,7 @@ public: /// size() - The length of this string. /// - unsigned size() const { return StrEnd - StrBegin; } + size_t size() const { return StrEnd - StrBegin; } /// begin() - Pointer to the first byte of the string. ///