Re: When is int32 not an int32? - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: When is int32 not an int32?
Date
Msg-id 624262B9-9026-466C-8DBC-3F4CF673A973@justatheory.com
Whole thread Raw
In response to Re: When is int32 not an int32?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sep 26, 2021, at 19:25, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> More to the point, you should be checking whether strtol reports overflow.
> Having now seen your code, I'll opine that the failing platforms have
> 32-bit long.

Thanks for the pointer, Tom. I believe this fixes that particular issue.

  https://github.com/theory/pg-semver/commit/4d79dcc

Best,

David


Attachment

pgsql-hackers by date:

Previous
From: A Z
Date:
Subject: PostgreSQL High Precision Mathematics Extension.
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Improve logging when using Huge Pages