fix off by one error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-04-16 04:10:37 +00:00
parent c0814dc606
commit 036a94ed61

View File

@ -56,7 +56,7 @@ public:
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 @@ public:
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...