diff options
author | Michael Meskes <meskes@postgresql.org> | 2009-05-21 12:54:27 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2009-05-21 12:54:27 +0000 |
commit | ab9981ccc69b6d850ed9c671b1a64a8b90b33032 (patch) | |
tree | c2883837a3dba521805ddbfb1c72e4b9660e3455 /src/interfaces/libpq/fe-exec.c | |
parent | c697337c766e0ac313227a5363965cecef8f0224 (diff) |
Removed comparison of unsigned expression < 0.
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r-- | src/interfaces/libpq/fe-exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index c3898f78b44..a73630191b1 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.200 2009/01/01 17:24:03 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.201 2009/05/21 12:54:27 meskes Exp $ * *------------------------------------------------------------------------- */ @@ -2385,7 +2385,7 @@ PQresultStatus(const PGresult *res) char * PQresStatus(ExecStatusType status) { - if (status < 0 || status >= sizeof pgresStatus / sizeof pgresStatus[0]) + if (status >= sizeof pgresStatus / sizeof pgresStatus[0]) return libpq_gettext("invalid ExecStatusType code"); return pgresStatus[status]; } |