Index: src/frm/frmEditGrid.cpp
===================================================================
--- src/frm/frmEditGrid.cpp	(revision 5211)
+++ src/frm/frmEditGrid.cpp	(working copy)
@@ -1837,8 +1837,8 @@
     skipSerial = false;
 
     for (col = 0; col < nCols; col++) {
-        if ((unsigned int)columns[col].type == PGOID_TYPE_SERIAL ||
-            (unsigned int)columns[col].type == PGOID_TYPE_SERIAL8)
+        if ((unsigned int)columns[col].type == (unsigned int)PGOID_TYPE_SERIAL ||
+            (unsigned int)columns[col].type == (unsigned int)PGOID_TYPE_SERIAL8)
         {
             wxMessageDialog msg(GetView()->GetParent(),
                 _("This table contains serial columns. Do you want to use the values in the clipboard for these columns?"),
@@ -1853,8 +1853,8 @@
 
     for (col = (hasOids ? 1 : 0); col < nCols && col < (int)data.GetCount(); col++)
     {
-        if (!(skipSerial && ((unsigned int)columns[col].type == PGOID_TYPE_SERIAL ||
-            (unsigned int)columns[col].type == PGOID_TYPE_SERIAL8)))
+        if (!(skipSerial && ((unsigned int)columns[col].type == (unsigned int)PGOID_TYPE_SERIAL ||
+            (unsigned int)columns[col].type == (unsigned int)PGOID_TYPE_SERIAL8)))
         {
             SetValue(row, col, data.Item(col));
         }
