mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
c0814dc606
commit
036a94ed61
@ -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...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user