Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.184 -> 1.185
---
Log message:

Portably cast a pointer to an integer.


---
Diffs of the changes:  (+1 -1)

 Reader.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.184 
llvm/lib/Bytecode/Reader/Reader.cpp:1.185
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.184   Mon Jan 23 22:14:29 2006
+++ llvm/lib/Bytecode/Reader/Reader.cpp Tue Jan 24 20:40:10 2006
@@ -79,7 +79,7 @@
 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)



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to