Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 1998 22:47:03 +0300 (MSK)
From:      =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: Nasty GCC bug?
Message-ID:  <Pine.BSF.3.96.980120224412.28008A-100000@lsd.relcom.eu.net>
In-Reply-To: <199801201933.MAA27126@usr04.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<ache@nietzsche.net>
http://www.nagual.pp.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980120224412.28008A-100000>