Re: When is int32 not an int32?

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: When is int32 not an int32?
Date: 2021-09-27 02:38:46
Message-ID: 624262B9-9026-466C-8DBC-3F4CF673A973@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sep 26, 2021, at 19:25, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2021-09-27 02:40:23 Re: Improve logging when using Huge Pages
Previous Message A Z 2021-09-27 01:36:38 PostgreSQL High Precision Mathematics Extension.