diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-27 07:48:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-27 07:48:45 +0000 |
commit | 35976d91afc2d4b9853de7fc5565c5345aa9ffb2 (patch) | |
tree | 1c079443ca561baa0f18b013fbf76d88ae3241fd /projects/Stacker/lib/runtime | |
parent | f2ec35be40bd3ac71ea528ce766f826565403282 (diff) | |
download | external_llvm-35976d91afc2d4b9853de7fc5565c5345aa9ffb2.zip external_llvm-35976d91afc2d4b9853de7fc5565c5345aa9ffb2.tar.gz external_llvm-35976d91afc2d4b9853de7fc5565c5345aa9ffb2.tar.bz2 |
* Squelch warning on Sun
* stdlib and friends are system headers
* 'long long' is the type that consistently turns into the LLVM 'long' type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/Stacker/lib/runtime')
-rw-r--r-- | projects/Stacker/lib/runtime/stacker_rt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/projects/Stacker/lib/runtime/stacker_rt.c b/projects/Stacker/lib/runtime/stacker_rt.c index 7deb54d..9709ac4 100644 --- a/projects/Stacker/lib/runtime/stacker_rt.c +++ b/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] ); } |