--- Comment #2 from regehr at cs dot utah dot edu 2009-06-09 19:10 ---
Ah.. promotion to int trumps the casts to unsigned. Thanks and sorry for the
spurious report.
(In reply to comment #1)
> Subject: Re: New: possible integer wrong code bug
>
> On Tue, 9 Jun 2009, regehr at cs dot
--- Comment #1 from joseph at codesourcery dot com 2009-06-09 18:34 ---
Subject: Re: New: possible integer wrong code bug
On Tue, 9 Jun 2009, regehr at cs dot utah dot edu wrote:
> reg...@john-home:~$ cat foo.c
> #include
>
> int foo(int y)
> {
> return (((unsigned short)y*(unsig