diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-07-13 23:20:24 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-07-13 23:20:24 +0000 |
commit | 8640f2bdc1a805cf22a40c461d145ddb63b13848 (patch) | |
tree | ab477845dee67fcf9a08010666b4a890e4ff0b9c /llvm/examples/ParallelJIT/ParallelJIT.cpp | |
parent | f17006fddad2478a200a4c1502d453506ec56311 (diff) | |
download | bcm5719-llvm-8640f2bdc1a805cf22a40c461d145ddb63b13848.tar.gz bcm5719-llvm-8640f2bdc1a805cf22a40c461d145ddb63b13848.zip |
Get rid of warnings on Alpha
llvm-svn: 22428
Diffstat (limited to 'llvm/examples/ParallelJIT/ParallelJIT.cpp')
-rw-r--r-- | llvm/examples/ParallelJIT/ParallelJIT.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp index a533ba5947f..d27683e9071 100644 --- a/llvm/examples/ParallelJIT/ParallelJIT.cpp +++ b/llvm/examples/ParallelJIT/ParallelJIT.cpp @@ -223,7 +223,7 @@ void* callFunc( void* param ) 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 @@ int main() 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; } |