need help with a delcaration

Brian Jones qwerty at drutx.UUCP
Mon Sep 8 12:52:47 AEST 1986


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



More information about the Comp.lang.c mailing list