develooper Front page | perl.perl5.porters | Postings from June 2015

Re: Coverity finding: shift by negative

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
June 24, 2015 13:41
Subject:
Re: Coverity finding: shift by negative
Message ID:
20150624154053.69b23af7@pc09.procura.nl
On Wed, 24 Jun 2015 08:48:28 -0400, Jarkko Hietaniemi <jhi@iki.fi>
wrote:

> - for the "left overshift" the best option would be the one we cannot
>   take, that is, go bigint
>   - since we cannot do the best, just going zero is the next best option

Why not NaN or Inf?

> - for the "right overshift", going zero is the most natural (and
>   mirrors the above choice for "left overshift")

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.21   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About