pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: MSVC compilers complain about snprintf
Date: Wed, 17 Oct 2018 17:27:14 -0400
Message-ID: <05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com> (raw)


The MSVC compilers are whingeing about recent changes in snprintf.c:


    src\port\snprintf.c(1051): warning C4146: unary minus operator
    applied to unsigned type, result still unsigned


The line in question reads:

    uvalue = -(unsigned long long) value;

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (4+ messages)  latest in thread

Message-ID: <05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com>
Permalink:  ../05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com/
Also on:    postgresql.org/message-id/05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: andrew.dunstan@2ndquadrant.com
  Subject: Re: MSVC compilers complain about snprintf
  In-Reply-To: <05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com>

* 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