qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 01/25] Introduce QEMU dictionary data type


From: Paul Brook
Subject: Re: [Qemu-devel] Re: [PATCH 01/25] Introduce QEMU dictionary data type
Date: Thu, 30 Jul 2009 16:19:44 +0100
User-agent: KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; )

On Thursday 30 July 2009, Avi Kivity wrote:
> On 07/30/2009 06:04 PM, Filip Navara wrote:
> > Again, intptr_t should be used here in long term. long is probably
> > fine for now before I post the Win64 patches.
>
> No, for the long term we shouldn't be putting pointers into integers or
> vice versa unless there's a really good reason to do so.

I'd go further than that. Don't put integers into pointers *at all*. It's 
really not worth it. Use a proper union/struct/opaque-pointer-to-value.

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]