Re: Text search segmentation fault

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: Text search segmentation fault
Дата
Msg-id 2f4958ff0901290815o1e4b7527ie23336b10e6e123a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Text search segmentation fault  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-general
On Thu, Jan 29, 2009 at 4:06 PM, Gregory Stark <stark@enterprisedb.com> wrote:
> Gregory Stark <stark@enterprisedb.com> writes:

> Ah, I understand how this fixes the problem. You were casting to unsigned
> *int* not unsigned char so it was sign extending first and then overflowing.
:)

> It still seems to me if you put a few "unsigned" in variable declarations you
> could remove piles upon piles of casts and make all of the code more readable.

which is one of the main problems I see with that code, overall.


--
GJ

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Text search segmentation fault
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Text search segmentation fault