[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-dev
Subject:    Re: [mythtv] [mythtv-commits] Ticket #10793: CommFlagger improvements
From:       Lawrence Rust <lvr () softsystem ! co ! uk>
Date:       2012-06-22 17:05:21
Message-ID: 1340384721.1492.2.camel () gagarin
[Download RAW message or body]

On Sat, 2012-06-23 at 00:55 +1000, Mark Spieth wrote:
> On 6/23/2012 12:49 AM, Raymond Wagner wrote:
> > On 6/22/2012 04:16, MythTV wrote:
> >>
> >>   this is a 32/64 bit problem. change uint to ulong.
> >>
> >>   Ill try to get an update out this weekend with algo tweeks.
> >>
> >
> > Better to use the more explicit uint32_t.
> only temporary anyway. converting ptr (32 or 64 bit) to hex in for 
> display. ulong works correctly in this case. unless there is a better 
> QString.arg  way of doing this. It wasnt happy with just the ptr.

Qt has the portable type quintptr just for this.  From the Qt docs:

"Integral type for representing a pointers (useful for hashing, etc.).

Typedef for either quint32 or quint64. This type is guaranteed to be the
same size as a pointer on all platforms supported by Qt. On a system
with 32-bit pointers, quintptr is a typedef for quint32; on a system
with 64-bit pointers, quintptr is a typedef for quint64.

Note that quintptr is unsigned. Use qptrdiff for signed values."

-- 
Lawrence
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic