[mythtv] [mythtv-commits] Ticket #10793: CommFlagger improvements

Lawrence Rust lvr at softsystem.co.uk
Fri Jun 22 17:05:21 UTC 2012


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


More information about the mythtv-dev mailing list