Re: [BUGS] contrib/intarray/_int_gist.c

2006-04-12 Thread Bruce Momjian
Tom Lane wrote: > "Qingqing Zhou" <[EMAIL PROTECTED]> writes: > > AFAICS, int32 and int are exactly the same thing in PostgreSQL. For the > > machine int is not 32 bits long, PostgreSQL won't even run. > > Ideally we should operate correctly if "int" is 64 bits. In practice > I agree that making

Re: [BUGS] contrib/intarray/_int_gist.c

2006-04-05 Thread Tom Lane
"Qingqing Zhou" <[EMAIL PROTECTED]> writes: > AFAICS, int32 and int are exactly the same thing in PostgreSQL. For the > machine int is not 32 bits long, PostgreSQL won't even run. Ideally we should operate correctly if "int" is 64 bits. In practice I agree that making contrib work would be mighty

Re: [BUGS] contrib/intarray/_int_gist.c

2006-04-05 Thread Qingqing Zhou
<[EMAIL PROTECTED]> wrote > In "g_int_compress" : > > > int*dr; > ... > memmove((void *) &dr[cand - 1], (void *) &dr[cand + 1], (len - cand - > 1) * sizeof(int)); > > Should be > > int32 *dr; > ... > memmove((void *) &dr[cand - 1], (void *) &dr[cand + 1], (len - cand - > 1)