diff mbox

sparse 0.4.2: cgcc issue

Message ID 4B1B9D2A.6080804@scarlet.be (mailing list archive)
State Superseded, archived
Headers show

Commit Message

rubisher Dec. 6, 2009, 12:01 p.m. UTC
None
diff mbox

Patch

--- /usr/bin/cgcc.orig	2009-11-28 17:41:28.000000000 +0000
+++ /usr/bin/cgcc	2009-12-06 11:55:32.000000000 +0000
@@ -133,7 +133,7 @@ 
      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};