pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Christoph Berg <myon@debian.org>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Provide overflow safe integer math inline functions.
Date: Wed, 13 Dec 2017 09:35:24 -0800
Message-ID: <20171213173524.rjs7b3ahsong5zko@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmoaBj4vDrbGK15mf-nvQ6N=fD7SBJSFr0Vi6Edoy0x2E3g@mail.gmail.com>
References: <E1eOvQF-00075r-Cy@gemulon.postgresql.org>
	<20171213101037.GA28753@msg.df7cb.de>
	<CA+TgmoaBj4vDrbGK15mf-nvQ6N=fD7SBJSFr0Vi6Edoy0x2E3g@mail.gmail.com>

On 2017-12-13 09:37:25 -0500, Robert Haas wrote:
> On Wed, Dec 13, 2017 at 5:10 AM, Christoph Berg <myon@debian.org> wrote:
> > Re: Andres Freund 2017-12-13 <E1eOvQF-00075r-Cy@gemulon.postgresql.org>
> >> Provide overflow safe integer math inline functions.
> >
> > The new _overflow functions have buggy comments:
> >
> > /*
> >  * If a - b overflows, return true, otherwise store the result of a + b into
> >  * *result.                                                         ^ there
> 
> What's wrong with that?

After staring at it for a while, I seem to have partially mis-copied the
note for addition to the subtraction operation...

Greetings,

Andres Freund




view thread (16+ messages)  latest in thread

Message-ID: <20171213173524.rjs7b3ahsong5zko@alap3.anarazel.de>
Permalink:  ../20171213173524.rjs7b3ahsong5zko@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20171213173524.rjs7b3ahsong5zko@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, robertmhaas@gmail.com, myon@debian.org
  Subject: Re: pgsql: Provide overflow safe integer math inline functions.
  In-Reply-To: <20171213173524.rjs7b3ahsong5zko@alap3.anarazel.de>
  References: <E1eOvQF-00075r-Cy@gemulon.postgresql.org> <20171213101037.GA28753@msg.df7cb.de> <CA+TgmoaBj4vDrbGK15mf-nvQ6N=fD7SBJSFr0Vi6Edoy0x2E3g@mail.gmail.com> <20171213173524.rjs7b3ahsong5zko@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox