Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250606160809.GL1827@brightrain.aerifal.cx>
Date: Fri, 6 Jun 2025 12:08:11 -0400
From: Rich Felker <dalias@...c.org>
To: Andy Caldwell <andy.m.caldwell@...glemail.com>
Cc: musl@...ts.openwall.com, David Steele <david@...ackrest.org>,
	noloader@...il.com
Subject: Re: Sign conversion warning in FD_ISSET()

On Fri, Jun 06, 2025 at 05:01:29PM +0100, Andy Caldwell wrote:
> > Something like ((unsigned)(1?1*(s):0)) ?
> >
> > Rich
> 
> Even simpler - ((unsigned)(1*(s)))

Even simpler: ((unsigned)+(s))

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.