Re: Use of "long" in incremental sort code - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Use of "long" in incremental sort code
Date
Msg-id CAH2-WzkjqYNBmrgR8v-jzMtUauVR_i7EqsGU4_gaWZsehiLzeg@mail.gmail.com
Whole thread Raw
In response to Re: Use of "long" in incremental sort code  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Jul 2, 2020 at 12:44 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > That's from POSIX, though. I imagine MSVC won't be happy (surprise!).
>
> We've got quite a few uses of it already, so apparently it's fine.

Oh, looks like we have a compatibility hack for MSVC within
win32_port.h, where ssize_t is typedef'd to __int64. I didn't realize
that it was okay to use ssize_t.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: James Coleman
Date:
Subject: Re: Use of "long" in incremental sort code
Next
From: Peter Geoghegan
Date:
Subject: Re: Use of "long" in incremental sort code