Re: Some architectures need "signed char" declarations

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Some architectures need "signed char" declarations
Date: 2002-01-09 20:30:06
Message-ID: 14835.1010608206@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Doug Royer <Doug(at)royer(dot)com> writes:
> And if the default for int or char is unsigned as it can
> be on some systems, the code does exactly that.

There are no systems where "int" means "unsigned int". That would break
(to a first approximation) every C program in existence, as well as
violate the ANSI C specification.

The variables in question do need to be "int" not any flavor of "char",
but we don't need to say "signed int".

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2002-01-09 20:35:53 Re: Does getopt() return "-1", or "EOF", at end?
Previous Message Marc G. Fournier 2002-01-09 20:21:04 Re: RC1 time?