Re: Fix inappropriate uses of PG_GETARG_UINT32()

2021-12-06 Thread Peter Eisentraut
On 01.12.21 22:59, Bossart, Nathan wrote: On 12/1/21, 10:29 AM, "Peter Eisentraut" wrote: The attached patch fixes this by accepting the argument using PG_GETARG_INT32(), doing some checks, and then casting it to unsigned for the rest of the code. The patch also fixes another inappropriate us

Re: Fix inappropriate uses of PG_GETARG_UINT32()

2021-12-01 Thread Bossart, Nathan
On 12/1/21, 10:29 AM, "Peter Eisentraut" wrote: > The attached patch fixes this by accepting the argument using > PG_GETARG_INT32(), doing some checks, and then casting it to unsigned > for the rest of the code. > > The patch also fixes another inappropriate use in an example in the > documentati

Fix inappropriate uses of PG_GETARG_UINT32()

2021-12-01 Thread Peter Eisentraut
few recently.From 4b14d698486d6c46c3d91c9bf5c380f8acddb095 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 1 Dec 2021 19:18:08 +0100 Subject: [PATCH] Fix inappropriate uses of PG_GETARG_UINT32() The chr() function used PG_GETARG_UINT32() even though the argument is declared as (signed) integer.