Path: utzoo!telly!ddsw1!mcdchg!rutgers!labrea!decwrl!ucbvax!mcgrath From: mcgrath@tully.Berkeley.EDU (Roland McGrath) Newsgroups: gnu.gcc.bug Subject: Re: spurious argument mismatch message? Message-ID: Date: 14 Oct 88 03:15:08 GMT References: <8810102002.AA19547@troy.frame.com> Sender: usenet@ucbvax.BERKELEY.EDU Distribution: gnu Organization: /lang/guest/mcgrath/News/.organization Lines: 11 In-reply-to: frame!troy!drf@SUN.COM's message of 10 Oct 88 20:02:09 GMT When a function is defined with traditional syntax: void func(x) short int x; { ... } The `short int' gets widened to an `int'. A prototype declaration containing a `short int' argument says that the argument should not be widened. -- Roland McGrath roland@wheaties.ai.mit.edu, mit-eddie!wheaties.ai.mit.edu!roland