Re: Some architectures need "signed char" declarations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Some architectures need "signed char" declarations
Дата
Msg-id 14835.1010608206@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Some architectures need "signed char" declarations  (Doug Royer <Doug@royer.com>)
Список pgsql-hackers
Doug Royer <Doug@royer.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: again on index usage
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: pg_dump bug ... or not?