Re: [PATCH v3] Cast pid_t to long long when printing

2017-08-19 Thread Mark Wielaard
On Fri, Aug 18, 2017 at 05:20:02PM +0200, Ulf Hermann wrote: > We don't know sizeof(pid_t) as it's not specified in any standard. In > order to still print it, we cast to long long, the largest integer type > we can easily print. That is surprising. But then printing it as long long is as good as

[PATCH v3] Cast pid_t to long long when printing

2017-08-18 Thread Ulf Hermann
We don't know sizeof(pid_t) as it's not specified in any standard. In order to still print it, we cast to long long, the largest integer type we can easily print. (Rebased, and rephrased message: This is not a windows quirk, but rather a standards problem.) Signed-off-by: Ulf Hermann --- src/Ch