[mythtv] [mythtv-commits] mythtv commit: r18315 by paulh
cal
cal at graggrag.com
Mon Sep 22 05:06:50 UTC 2008
Dean Harding wrote:
> Nigel Pearson wrote:
>> Interesting. My first impulse was:
>>
>> - if (print_verbose_messages & VB_MEDIA+VB_EXTRA)
>> + if (print_verbose_messages & (VB_MEDIA+VB_EXTRA))
>>
>>
>> but that still fails. I'm still trying to
>> apply my mental AND-gate to work out why
>> (and why cal's elegant version does work)
>
> Surely it would depend on the integer value of VB_MEDIA and VB_EXTRA.
>
> After all, (1 + 3) != (1 | 3)
>
> Of course, I don't *know* the integer values of VB_MEDIA or VB_EXTRA...
It's not so much the integer values that count, but which bits are set
VB_MEDIA 0x0080000
VB_EXTRA 0x40000000
which is where the elegance of ANDing comes in handy.
cheers, Cal
More information about the mythtv-dev
mailing list