diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 36b64f55f10ae5138d12b3ee2f0d4f2d7d5a6024..6e03222a0d6dab519fd8b49f2ecc6c5f80149220 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.99 2001/02/06 02:00:09 tgl Exp $
+ *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.100 2001/02/06 02:02:27 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2049,7 +2049,7 @@ Oid
 PQoidValue(const PGresult *res)
 {
 	char	   *endptr = NULL;
-	long int	result;
+	unsigned long result;
 
 	if (!res || !res->cmdStatus || strncmp(res->cmdStatus, "INSERT ", 7) != 0)
 		return InvalidOid;