Article View: net.lang.c
Article #9277Re: need help with a delcaration
From: Brian Jones
Date: Mon, 08 Sep 1986 02:52
Date: Mon, 08 Sep 1986 02:52
19 lines
937 bytes
937 bytes
In the sequence:
main()
{
char c = 'w';
foo(c)
}
foo(ch)
char ch;
char ch is the correct declaration. The compiler/code generator should
handle pulling the character portion of the promoted variable off the
stack correctly. Declaring it 'int' is asking for trouble.
Brian Jones aka {ihnp4,}!{drutx,druhi}!qwerty @ AT&T-IS, Denver
--
Brian Jones aka {ihnp4,}!{drutx,druhi}!qwerty @ AT&T-IS, Denver
Technical Details
Message-ID:
<1219@drutx.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!caip!clyde!cbatt!ihnp4!drutx!qwertyReferences:
<3594@brl-smoke.ARPA>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!caip!clyde!cbatt!ihnp4!drutx!qwerty From: qwerty@drutx.UUCP (Brian Jones) Newsgroups: net.lang.c Subject: Re: need help with a delcaration Message-ID: <1219@drutx.UUCP> Date: Sun, 7-Sep-86 22:52:47 EDT Article-I.D.: drutx.1219 Posted: Sun Sep 7 22:52:47 1986 Date-Received: Mon, 8-Sep-86 21:08:23 EDT References: <3594@brl-smoke.ARPA> Organization: AT&T Information Systems, Denver Lines: 19