bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from


From: Samuel Thibault
Subject: Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC)
Date: Mon, 9 Dec 2013 14:27:07 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Richard Braun, le Mon 09 Dec 2013 14:10:32 +0100, a écrit :
> On Mon, Dec 09, 2013 at 12:59:33PM +0100, Samuel Thibault wrote:
> > No, it's really commenting c != K_DONE which makes the warning away. My
> > current guess is that c gets implicitly casted to int instead of
> > unsigned int.
> 
> Just to make sure, I've switched char_idx and max to unsigned int and
> the warning disappeared.

gg...

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]