[llvm-commits] CVS: llvm/examples/ParallelJIT/ParallelJIT.cpp
Reid Spencer
reid at x10sys.com
Wed Jul 13 16:20:37 PDT 2005
Changes in directory llvm/examples/ParallelJIT:
ParallelJIT.cpp updated: 1.1 -> 1.2
---
Log message:
Get rid of warnings on Alpha
---
Diffs of the changes: (+4 -4)
ParallelJIT.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/examples/ParallelJIT/ParallelJIT.cpp
diff -u llvm/examples/ParallelJIT/ParallelJIT.cpp:1.1 llvm/examples/ParallelJIT/ParallelJIT.cpp:1.2
--- llvm/examples/ParallelJIT/ParallelJIT.cpp:1.1 Tue Jul 12 16:51:34 2005
+++ llvm/examples/ParallelJIT/ParallelJIT.cpp Wed Jul 13 18:20:24 2005
@@ -223,7 +223,7 @@
synchronize.block(); // wait until other threads are at this point
GenericValue gv = p->EE->runFunction(p->F, Args);
- return (void*) gv.IntVal;
+ return (void*) intptr_t(gv.IntVal);
}
int main()
@@ -275,21 +275,21 @@
std::cerr << "Could not join thread" << std::endl;
return 1;
}
- std::cout << "Add1 returned " << (int) returnValue << std::endl;
+ std::cout << "Add1 returned " << intptr_t(returnValue) << std::endl;
result = pthread_join( fibThread1, &returnValue );
if ( result != 0 ) {
std::cerr << "Could not join thread" << std::endl;
return 1;
}
- std::cout << "Fib1 returned " << (int) returnValue << std::endl;
+ std::cout << "Fib1 returned " << intptr_t(returnValue) << std::endl;
result = pthread_join( fibThread2, &returnValue );
if ( result != 0 ) {
std::cerr << "Could not join thread" << std::endl;
return 1;
}
- std::cout << "Fib2 returned " << (int) returnValue << std::endl;
+ std::cout << "Fib2 returned " << intptr_t(returnValue) << std::endl;
return 0;
}
More information about the llvm-commits
mailing list