diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index e8b47e9fada3072a44e7f60357c25e8d8cdee57d..0fa63d8fd8d377e59f515caf4d322e277cc8a5af 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.7 1996/08/19 13:25:40 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.8 1996/08/19 13:38:42 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -241,7 +241,7 @@ connectDB(PGconn *conn)
 
 /*    pacBuf = startup2PacketBuf(&startup);*/
     startup2PacketBuf(&startup, &pacBuf);
-    pacBuf.msgtype = htonl(msgtype);
+    pacBuf.msgtype = (MsgType) htonl(msgtype);
     status = packetSend(port, &pacBuf, sizeof(PacketBuf), BLOCKING);
     
     if (status == STATUS_ERROR)