This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: signed/unsigned right shift
- From: Christian Groessler <cpg at aladdin dot de>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: GCC List <gcc at gcc dot gnu dot org>
- Date: 15 Mar 2004 23:24:17 +0100
- Subject: Re: signed/unsigned right shift
On 03/15/2004 05:16:55 PM EST Ian Lance Taylor wrote:
>
>Christian Groessler <cpg@aladdin.de> writes:
>
>Your suggestion would be expressed as "The integer promotions preserve
>value including signedness."
Yes, that's how I read it erroneously.
>K&R C was signedness preserving. ISO C is value preserving. A quick
>Google search turned up this page on the topic:
> http://ou800doc.caldera.com/SDK_cprog/_Background.html
That's putting it to the point.
Thanks to all who responded.
regards,
chris