[LAD] Mixed boolean & numbers

Will Godfrey willgodfrey at musically.me.uk
Sat Aug 27 15:49:46 UTC 2016


I'm finding quite a lot of occasions where variables defined as 'bool' are
sometimes being set with true or false and other times 0 or 1. On one occasion
there is something like x = n + {boolean variable}

This last one seems quite unsafe to me as I didn't think the actual value of
true and false was guaranteed.

Am I being overly cautious or should I change them all to one form or the other?

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.


More information about the Linux-audio-dev mailing list