From owner-freebsd-current Tue Jan 20 11:47:33 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29116 for current-outgoing; Tue, 20 Jan 1998 11:47:33 -0800 (PST) (envelope-from owner-freebsd-current) Received: from lsd.relcom.eu.net (ache@lsd.relcom.eu.net [193.124.23.23]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29105 for ; Tue, 20 Jan 1998 11:47:24 -0800 (PST) (envelope-from ache@lsd.relcom.eu.net) Received: (from ache@localhost) by lsd.relcom.eu.net (8.8.8/8.8.8) id WAA28013; Tue, 20 Jan 1998 22:47:06 +0300 (MSK) (envelope-from ache) Date: Tue, 20 Jan 1998 22:47:03 +0300 (MSK) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= X-Sender: ache@lsd.relcom.eu.net To: Terry Lambert cc: current@FreeBSD.ORG Subject: Re: Nasty GCC bug? In-Reply-To: <199801201933.MAA27126@usr04.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 20 Jan 1998, Terry Lambert wrote: > What is happening is that the value is being sign-extended to int > when it is pushed on the stack. It is absolutely no bug here, it is THE RULE. All types smaller than int promotes to int in any expression, and signed types promotes _with_ sign extension. Function argument is an expression. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/