aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Soete <rubisher@scarlet.be>2009-12-12 19:09:31 +0000
committerChristopher <sparse@chrisli.org>2010-03-28 17:51:36 -0700
commit5ee6210240559cd77deca1da66216b2772d23f58 (patch)
tree3d6a371991aa02c0cf195363105fe6e7917b385e
parentb44806626df56ebf4948a4597284935f8a10153e (diff)
downloadsparse-5ee6210240559cd77deca1da66216b2772d23f58.tar.gz
possible fix to cgcc issue in sparse 0.4.2:
Use of uninitialized value $bits in exists at /usr/bin/cgcc line 139. /usr/bin/cgcc: weird number of bits. at /usr/bin/cgcc line 139. Signed-off-by: Joel Soete <rubisher@scarlet.be> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rwxr-xr-xcgcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index d37cf888..6636cc65 100755
--- a/cgcc
+++ b/cgcc
@@ -120,7 +120,7 @@ sub integer_types {
my @types = (['SCHAR',''], ['SHRT',''], ['INT',''], ['LONG','L'], ['LONG_LONG','LL'], ['LONG_LONG_LONG','LLL']);
my $result = " -D__CHAR_BIT__=$char";
- while (@types) {
+ while (@types && @_) {
my $bits = shift @_;
my ($name,$suffix) = @{ shift @types };
die "$0: weird number of bits." unless exists $pow2m1{$bits};