From 341b328b180e65d1fa5c8f2235cf101c8a12824f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 17 Mar 2000 02:36:41 +0000 Subject: 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... --- src/include/postgres.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/postgres.h') diff --git a/src/include/postgres.h b/src/include/postgres.h index 5e2aad688a7..e089db510f6 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.36 2000/01/26 05:57:46 momjian Exp $ + * $Id: postgres.h,v 1.37 2000/03/17 02:36:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -97,7 +97,7 @@ struct varlena #define VARSIZE(PTR) (((struct varlena *)(PTR))->vl_len) #define VARDATA(PTR) (((struct varlena *)(PTR))->vl_dat) -#define VARHDRSZ sizeof(int32) +#define VARHDRSZ ((int32) sizeof(int32)) typedef struct varlena bytea; typedef struct varlena text; -- cgit v1.2.3