]> granicus.if.org Git - postgresql/commitdiff
Suppress compiler warning on Alpha.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Feb 2001 21:03:03 +0000 (21:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Feb 2001 21:03:03 +0000 (21:03 +0000)
src/backend/nodes/readfuncs.c

index 67f935e4f2354d713773769894032aec915b9d33..a6eb9de4dceefaa61eacd8a862a41e37bef73c55 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.105 2001/01/24 19:42:57 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.106 2001/02/12 21:03:03 tgl Exp $
  *
  * NOTES
  *       Most of the read functions for plan nodes are tested. (In fact, they
@@ -2086,7 +2086,8 @@ readDatum(bool typbyval)
        if (typbyval)
        {
                if (length > (Size) sizeof(Datum))
-                       elog(ERROR, "readDatum: byval & length = %u", length);
+                       elog(ERROR, "readDatum: byval & length = %lu",
+                                (unsigned long) length);
                res = (Datum) 0;
                s = (char *) (&res);
                for (i = 0; i < (Size) sizeof(Datum); i++)
@@ -2110,7 +2111,8 @@ readDatum(bool typbyval)
 
        token = pg_strtok(&tokenLength); /* skip the ']' */
        if (token == NULL || token[0] != ']')
-               elog(ERROR, "readDatum: ']' expected, length = %d", length);
+               elog(ERROR, "readDatum: ']' expected, length = %lu",
+                        (unsigned long) length);
 
        return res;
 }