From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Removed comparison of unsigned expression < 0. |
Date: | 2009-05-27 14:15:41 |
Message-ID: | 20090527141541.GA19077@feivel.credativ.lan |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
On Tue, May 26, 2009 at 06:51:57PM -0400, Tom Lane wrote:
> I believe that this change is a bad idea and should be reverted:
>
> > fe-exec.c (r1.200 -> r1.201)
> > (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-exec.c?r1=1.200&r2=1.201)
>
> This is correct only if enum ExecStatusType is considered unsigned by
> the compiler, an assumption that I don't believe is portable. (In
Enums per se are signed, but enum ExecStatusType should never be negative
since it starts with "PGRES_EMPTY_QUERY = 0" and then increases for the other
values.
> fact, Zdenek was just complaining about something else that seems to
> prove Solaris' compiler treats enums as signed always.)
Okay, before this provides any problem I revert to be on the safe side.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2009-05-27 14:16:51 | pgsql: Reverting patch just in case a compiler treats this enum as |
Previous Message | Bruce Momjian | 2009-05-27 12:28:55 | pgsql: Remove tabs from SGML file. |