qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 3/3] Introduce QNumber data type


From: Luiz Capitulino
Subject: [Qemu-devel] Re: [PATCH 3/3] Introduce QNumber data type
Date: Thu, 6 Aug 2009 18:21:39 -0300

On Thu, 06 Aug 2009 17:04:50 +0300
Avi Kivity <address@hidden> wrote:

> On 08/06/2009 04:52 PM, Luiz Capitulino wrote:
> > +
> > +typedef struct QNumber {
> > +    QObject base;
> > +    union {
> > +        int n_int;
> > +        int64_t n_int64;
> > +    } number;
> > +} QNumber;
> >    
> 
> Why not have an int64_t exclusively?

 Something I was wondering: why does get_expr() use int64_t
instead of uint64_t?

 As far as I can understand it uses strtoull() and strtoul() to
convert from the user's string and command handlers use 64-bits
values only for addresses and (signed) 32-bits for anything else.

 We are doing some int64_t to uint64_t conversions today...




reply via email to

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