[llvm-commits] [llvm] r70072 - /llvm/trunk/include/llvm/Constants.h

Mon P Wang wangmp at apple.com
Sat Apr 25 13:47:00 PDT 2009


Author: wangmp
Date: Sat Apr 25 15:46:59 2009
New Revision: 70072

URL: http://llvm.org/viewvc/llvm-project?rev=70072&view=rev
Log:
size() should return a size_t; avoids a warning for 64 bit machines.

Modified:
    llvm/trunk/include/llvm/Constants.h

Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=70072&r1=70071&r2=70072&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Sat Apr 25 15:46:59 2009
@@ -845,7 +845,7 @@
 
   /// 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.
   ///





More information about the llvm-commits mailing list