Re: Text search segmentation fault - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject Re: Text search segmentation fault
Date
Msg-id 2f4958ff0901290815o1e4b7527ie23336b10e6e123a@mail.gmail.com
Whole thread Raw
In response to Re: Text search segmentation fault  (Gregory Stark <stark@enterprisedb.com>)
List 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 by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Text search segmentation fault
Next
From: Tom Lane
Date:
Subject: Re: Text search segmentation fault