mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +00:00
Fix non-64-bit clean code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f7b346e3d
commit
76f6115424
@ -129,7 +129,8 @@ public:
|
|||||||
if (Alignment == 0) Alignment = 1;
|
if (Alignment == 0) Alignment = 1;
|
||||||
// Move the current buffer ptr up to the specified alignment.
|
// Move the current buffer ptr up to the specified alignment.
|
||||||
CurBufferPtr =
|
CurBufferPtr =
|
||||||
(unsigned char*)(((intptr_t)CurBufferPtr+Alignment-1) & ~(Alignment-1));
|
(unsigned char*)(((intptr_t)CurBufferPtr+Alignment-1) &
|
||||||
|
~(intptr_t)(Alignment-1));
|
||||||
if (CurBufferPtr > BufferEnd)
|
if (CurBufferPtr > BufferEnd)
|
||||||
CurBufferPtr = BufferEnd;
|
CurBufferPtr = BufferEnd;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user