------- Comment #3 from alexandre dot nunes at gmail dot com  2008-09-24 20:42 
-------
(In reply to comment #2)
> Subject: Re:   New: GCC applies signed strict-overflow rules to unsigned short
> type
> 
> When doing addition unsigned short is promoted to an signed int. So  
> this is not a bug. That is unsigned short + 1 is a signed int since 1  
> is a signed int.
> 
> Sent from my iPhone
> 

Hah, living and learning. That actually makes sense, thanks, I'll refine the
test.


-- 

alexandre dot nunes at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37642

Reply via email to