Re: contrib/intarray/_int_gist.c

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: contrib/intarray/_int_gist.c
Date: 2006-04-05 11:39:27
Message-ID: e10afp$1tgt$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


<jw(dot)pgsql(at)sduept(dot)com> 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) * sizeof(int32));
>

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.

Regards,
Qingqing

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2006-04-05 12:13:20 Re: NLS vs error processing, again (was Re: Composite Type
Previous Message Qingqing Zhou 2006-04-05 11:32:53 Re: BUG #2371: database crashes with semctl failed error