summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-27 07:48:45 +0000
committerChris Lattner <sabre@nondot.org>2003-11-27 07:48:45 +0000
commit2a7033255e719e3f97576efac308dd4636036675 (patch)
tree0702daee76b34adc54c333907486c363113de66d /llvm/projects/Stacker/lib
parentf1387a59bf04892a4bf77597fb165a49565102c9 (diff)
downloadbcm5719-llvm-2a7033255e719e3f97576efac308dd4636036675.tar.gz
bcm5719-llvm-2a7033255e719e3f97576efac308dd4636036675.zip
* Squelch warning on Sun
* stdlib and friends are system headers * 'long long' is the type that consistently turns into the LLVM 'long' type. llvm-svn: 10241
Diffstat (limited to 'llvm/projects/Stacker/lib')
-rw-r--r--llvm/projects/Stacker/lib/runtime/stacker_rt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/projects/Stacker/lib/runtime/stacker_rt.c b/llvm/projects/Stacker/lib/runtime/stacker_rt.c
index 7deb54d6ea3..9709ac49dd4 100644
--- a/llvm/projects/Stacker/lib/runtime/stacker_rt.c
+++ b/llvm/projects/Stacker/lib/runtime/stacker_rt.c
@@ -17,12 +17,12 @@
//
//===----------------------------------------------------------------------===//
-#include "ctype.h"
-#include "stdio.h"
-#include "stdlib.h"
+#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
-extern long _index_;
-extern int _stack_[1024];
+extern long long _index_;
+extern int _stack_[];
extern void _MAIN_();
void
@@ -49,7 +49,7 @@ main ( int argc, char** argv )
// so that they get popped in the order presented
while ( a > 0 )
{
- if ( isdigit( argv[--a][0] ) )
+ if ( isdigit( (int) argv[--a][0] ) )
{
_stack_[_index_++] = atoi( argv[a] );
}
OpenPOWER on IntegriCloud