pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Oliver Elphick <olly@lfix.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ConnInfo assumes signed char
Date: Mon, 10 Feb 2003 15:59:28 +0900
Message-ID: <3E474DD0.C6ACA75B@tpf.co.jp> (raw)
References: <1044641597.6898.141.camel@linda.lfix.co.uk>

Oliver Elphick wrote:
> 
> ConnInfo, defined in connection.h, assumes that char = signed char.
> 
> This is not true of Linux on arm, powerpc and s390, and possibly other
> platforms.  As a result:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c dlg_specific.c -MT dlg_specific.lo -MD -MP -MF .deps/dlg_specific.TPlo  -fPIC -DPIC -o dlg_specific.lo
> dlg_specific.c: In function `getDSNdefaults':
> dlg_specific.c:398: warning: comparison is always false due to limited range of data type
> dlg_specific.c:400: warning: comparison is always false due to limited range of data type
> dlg_specific.c:402: warning: comparison is always false due to limited range of data type
> dlg_specific.c:404: warning: comparison is always false due to limited range of data type
> dlg_specific.c:406: warning: comparison is always false due to limited range of data type
> dlg_specific.c: In function `getDSNinfo':
> dlg_specific.c:484: warning: comparison is always false due to limited range of data type
> dlg_specific.c:491: warning: comparison is always false due to limited range of data type
> dlg_specific.c:498: warning: comparison is always false due to limited range of data type
> dlg_specific.c:505: warning: comparison is always false due to limited range of data type
> dlg_specific.c:512: warning: comparison is always false due to limited range of data type
> 
> The problem still exists in current CVS.
> 
> Where char may contain a negative value, it should explicitly be
> declared as signed char.

OK I changed them to *signed char*s (maybe).
Thanks.

regards,
Hiroshi Inoue
	http://www.geocities.jp/inocchichichi/psqlodbc/



view thread (3+ messages)

Message-ID: <3E474DD0.C6ACA75B@tpf.co.jp>
Permalink:  ../3E474DD0.C6ACA75B@tpf.co.jp/
Also on:    postgresql.org/message-id/3E474DD0.C6ACA75B@tpf.co.jp

 · 

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-odbc@postgresql.org
  Cc: Inoue@tpf.co.jp, olly@lfix.co.uk
  Subject: Re: ConnInfo assumes signed char
  In-Reply-To: <3E474DD0.C6ACA75B@tpf.co.jp>
  References: <1044641597.6898.141.camel@linda.lfix.co.uk> <3E474DD0.C6ACA75B@tpf.co.jp>

* 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