Re: Perl's newSViv() versus 64-bit ints?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Perl's newSViv() versus 64-bit ints?
Date: 2016-03-12 01:46:37
Message-ID: 56E374FD.4060805@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03/11/2016 06:49 PM, Tom Lane wrote:
> Anybody know what will happen when passing a uint64 to newSViv()?
>
>

A perl IV is guaranteed large enough to hold a pointer, if that's any
help. But for an unsigned value you might be better off calling newSVuv()

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2016-03-12 02:33:23 Re: amcheck (B-Tree integrity checking tool)
Previous Message Chris Ruprecht 2016-03-12 01:42:20 OS X 10.11.3, psql, bus error 10, 9.5.1