Re: Windows 64 bit warnings - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Windows 64 bit warnings
Date
Msg-id 1303145277-sup-8682@alvh.no-ip.org
Whole thread Raw
In response to Windows 64 bit warnings  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Windows 64 bit warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Excerpts from Andrew Dunstan's message of sáb abr 16 21:46:44 -0300 2011:

> The other, slightly more serious case, is at 
> src/test/regress/pg_regress.c:2280, which is this code:
> 
>     printf(_("running on port %d with pid %lu\n"),
>          port, (unsigned long) postmaster_pid);
> 
> Here the postmaster_pid is in fact a HANDLE which is 8 bytes, and so it 
> should probably be cast to an unsigned long long and  rendered with the 
> format %llu in Win64.

Is this "uint64" and UINT64_FORMAT?

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Formatting Curmudgeons WAS: MMAP Buffers
Next
From: Merlin Moncure
Date:
Subject: Re: WIP: Allow SQL-language functions to reference parameters by parameter name