[llvm-commits] [llvm] r49766 - /llvm/trunk/include/llvm/ADT/SmallString.h
Chris Lattner
sabre at nondot.org
Tue Apr 15 21:10:37 PDT 2008
Author: lattner
Date: Tue Apr 15 23:10:37 2008
New Revision: 49766
URL: http://llvm.org/viewvc/llvm-project?rev=49766&view=rev
Log:
fix off by one error.
Modified:
llvm/trunk/include/llvm/ADT/SmallString.h
Modified: llvm/trunk/include/llvm/ADT/SmallString.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallString.h?rev=49766&r1=49765&r2=49766&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallString.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallString.h Tue Apr 15 23:10:37 2008
@@ -56,7 +56,7 @@
SmallString &append_uint_32(uint32_t N) {
char Buffer[20];
- char *BufPtr = Buffer+19;
+ char *BufPtr = Buffer+20;
if (N == 0) *--BufPtr = '0'; // Handle special case.
@@ -73,7 +73,7 @@
return append_uint_32(uint32_t(N));
char Buffer[40];
- char *BufPtr = Buffer+39;
+ char *BufPtr = Buffer+40;
if (N == 0) *--BufPtr = '0'; // Handle special case...
More information about the llvm-commits
mailing list