From f1f52ea4cc8badf6b0027ec045379a4382053c2d Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 11 May 2004 07:45:28 +0000 Subject: [PATCH] Squash warnings on Solaris/sparc... the test suite is not working for me so I can't be sure if these are OK, but they look OK. llvm-svn: 13459 --- projects/Stacker/lib/runtime/stacker_rt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Stacker/lib/runtime/stacker_rt.c b/projects/Stacker/lib/runtime/stacker_rt.c index 4928bffc73f..6336b18b4df 100644 --- a/projects/Stacker/lib/runtime/stacker_rt.c +++ b/projects/Stacker/lib/runtime/stacker_rt.c @@ -33,7 +33,7 @@ _stacker_dump_stack_() printf("Stack Dump:\n"); for (i = _index_; i > 0; i-- ) { - printf("#%03lld: %lld\n", i, _stack_[i] ); + printf("#%03lld: %lld\n", (long long int) i, (long long int) _stack_[i] ); } } @@ -56,7 +56,7 @@ main ( int argc, char** argv ) } else { - _stack_[_index_++] = (int) argv[a]; + _stack_[_index_++] = (int64_t) (intptr_t) argv[a]; } }