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 | 6fb0d735f0ffdf4cd1b0a1fa04bd436586097448 (patch) | |
tree | b2ca419cbaef5822d6ad886931f82f5519733c32 /examples/ParallelJIT | |
parent | 8a2246f32ec6480b6430078ff2c5740a0a11a3fb (diff) |
Get rid of warnings on Alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/ParallelJIT')
-rw-r--r-- | examples/ParallelJIT/ParallelJIT.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp index a533ba5947..d27683e907 100644 --- a/examples/ParallelJIT/ParallelJIT.cpp +++ b/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; } |