aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/outfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-03-17 02:36:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-03-17 02:36:41 +0000
commit341b328b180e65d1fa5c8f2235cf101c8a12824f (patch)
tree88d54198ffa15aea581251471f8c062ae9e3142e /src/backend/nodes/outfuncs.c
parentbc1f117094fbe2921f37923d8f7528284cb26dfc (diff)
downloadpostgresql-341b328b180e65d1fa5c8f2235cf101c8a12824f.tar.gz
postgresql-341b328b180e65d1fa5c8f2235cf101c8a12824f.zip
Fix a bunch of minor portability problems and maybe-bugs revealed by
running gcc and HP's cc with warnings cranked way up. Signed vs unsigned comparisons, routines declared static and then defined not-static, that kind of thing. Tedious, but perhaps useful...
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r--src/backend/nodes/outfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index eb2c1a7ffa8..75a70db2e23 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.110 2000/02/21 18:47:00 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.111 2000/03/17 02:36:12 tgl Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -1179,7 +1179,7 @@ _outDatum(StringInfo str, Datum value, Oid type)
{
s = (char *) (&value);
appendStringInfo(str, " %d [ ", length);
- for (i = 0; i < sizeof(Datum); i++)
+ for (i = 0; i < (int) sizeof(Datum); i++)
appendStringInfo(str, "%d ", (int) (s[i]));
appendStringInfo(str, "] ");
}
@@ -1198,7 +1198,7 @@ _outDatum(StringInfo str, Datum value, Oid type)
if (((int) length) <= -1)
length = VARSIZE(s);
appendStringInfo(str, " %d [ ", length);
- for (i = 0; i < length; i++)
+ for (i = 0; i < (int) length; i++)
appendStringInfo(str, "%d ", (int) (s[i]));
appendStringInfo(str, "] ");
}