Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dd580f1

Browse files
committed
Suppress compiler warning on Alpha.
1 parent aa88e59 commit dd580f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/nodes/readfuncs.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.105 2001/01/24 19:42:57 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.106 2001/02/12 21:03:03 tgl Exp $
1212
*
1313
* NOTES
1414
* Most of the read functions for plan nodes are tested. (In fact, they
@@ -2086,7 +2086,8 @@ readDatum(bool typbyval)
20862086
if (typbyval)
20872087
{
20882088
if (length > (Size) sizeof(Datum))
2089-
elog(ERROR, "readDatum: byval & length = %u", length);
2089+
elog(ERROR, "readDatum: byval & length = %lu",
2090+
(unsigned long) length);
20902091
res = (Datum) 0;
20912092
s = (char *) (&res);
20922093
for (i = 0; i < (Size) sizeof(Datum); i++)
@@ -2110,7 +2111,8 @@ readDatum(bool typbyval)
21102111

21112112
token = pg_strtok(&tokenLength); /* skip the ']' */
21122113
if (token == NULL || token[0] != ']')
2113-
elog(ERROR, "readDatum: ']' expected, length = %d", length);
2114+
elog(ERROR, "readDatum: ']' expected, length = %lu",
2115+
(unsigned long) length);
21142116

21152117
return res;
21162118
}

0 commit comments

Comments
 (0)