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 95344ad14c647ee4e732f8a7456998d9b1710b2f..991d169a69b9dbce87952795a152ab4f9bedc86e 100644 (file)
@@ -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;
 }