Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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