From 05ebc8d795f039f1b7647bb33e995aa2f5c40b73 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Wed, 25 Jan 2006 17:18:50 +0000 Subject: Make it even more portable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25605 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Bytecode') diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 239cf5c..d2660e3 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 *)((size_t)(At+3) & (~3UL)); + At = (const unsigned char *)((intptr_t)(At+3) & (~3UL)); if (At > Save) if (Handler) Handler->handleAlignment(At - Save); if (At > BlockEnd) -- cgit v1.1