Path: utzoo!news-server.csri.toronto.edu!rutgers!gatech!bloom-beacon!bloom-picayune.mit.edu!news.mit.edu!jefft From: jefft@chirality.rsa.com (Jeff Thompson) Newsgroups: comp.sys.next Subject: short int in GNU cc Message-ID: Date: 11 Mar 91 21:37:03 GMT Sender: news@athena.mit.edu (News system) Distribution: comp Organization: RSA Data Security, Inc. Lines: 23 Hi there, I want to use prototyping in my NeXT GNU C program for a function which takes a short int as an argument, such as: int MyFunc (short int); int MyFunc (x) short int x; { } I get the error: argument `x' doesn't match function prototype a formal parameter type that promotes to `int' can match only `int' in the prototype. How can I keep using prototypes without having to change all my functions to pass `int' instead of `short int' ? Thanks in advance, Jeff Thompson