develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #72784] [META] misuse of I32

Thread Previous
From:
Father Chrysostomos via RT
Date:
July 31, 2013 06:02
Subject:
[perl #72784] [META] misuse of I32
Message ID:
rt-3.6.HEAD-2552-1375250552-800.72784-15-0@perl.org
On Sat Jul 27 20:08:37 2013, tonyc wrote:
> I think it should be Ssize_t_max.

Is this a correct way to define it, or am I doing something non-portable
here?

#define SSize_t_MAX (SSize_t)(~(size_t)0 >> 1)

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=72784

Thread Previous


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