Bug#26778: postgresql-dev: postgresql/c.h typedefs Size as 'unsigned i nt', should be 'size_t' - Mailing list pgsql-bugs

From Paul Slootman
Subject Bug#26778: postgresql-dev: postgresql/c.h typedefs Size as 'unsigned i nt', should be 'size_t'
Date
Msg-id f383d9582d181e3b72f62ec2544c970e
Whole thread Raw
List pgsql-bugs
Package: postgresql-dev
Version: 6.3.2-11

Using the above wrong type for "Size" leads to conflicts with system
prototypes, e.g. palloc() which is apparently a define for malloc().
Replacing the "typedef unsigned int Size;" with "typedef size_t Size;"
leads to a usable system again; at least, on Alpha, where "unsigned int"
is NOT the same as "unsigned long", unlike i386.

Thanks,
Paul Slootman

- - -- System Information
Debian Release: 2.0
Kernel Version: Linux alf 2.0.35 #1 Tue Aug 11 11:09:24 CEST 1998 alpha unknown

- ------- End of Forwarded Message


- --
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "Let us therefore come boldly unto the throne of grace,
      that we may obtain mercy, and find grace to help in
      time of need."             Hebrews 4:16

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] error on HAVING clause
Next
From: akaneko@mx2.nisiq.net
Date:
Subject: [none]