diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-25 02:40:10 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-25 02:40:10 +0000 |
commit | fb709b6817426c99d2ce48a2d08ef20e376a0e06 (patch) | |
tree | 4ccc7b8603d0a23c1d424e84d4b7cacbdda9d24b /lib/Bytecode/Reader | |
parent | badf0d961454fed939b2cb670d41c8464e645541 (diff) |
Portably cast a pointer to an integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index e57101aeb5..239cf5c20e 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -79,7 +79,7 @@ inline void BytecodeReader::checkPastBlockEnd(const char * block_name) { inline void BytecodeReader::align32() { if (hasAlignment) { BufPtr Save = At; - At = (const unsigned char *)((unsigned long)(At+3) & (~3UL)); + At = (const unsigned char *)((size_t)(At+3) & (~3UL)); if (At > Save) if (Handler) Handler->handleAlignment(At - Save); if (At > BlockEnd) |