From 8d34844bff997d9587c4d64339f110908e4e720f Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Sat, 25 Apr 2009 20:46:59 +0000 Subject: [PATCH] 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 --- include/llvm/Constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. /// -- 2.34.1