diff options
Diffstat (limited to 'include/llvm/ADT/SmallString.h')
-rw-r--r-- | include/llvm/ADT/SmallString.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h index afcaafb..9be654e 100644 --- a/include/llvm/ADT/SmallString.h +++ b/include/llvm/ADT/SmallString.h @@ -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... |