[LAD] Mixed boolean & numbers

From: Will Godfrey <willgodfrey@email-addr-hidden>
Date: Sat Aug 27 2016 - 18:49:46 EEST

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.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sun Aug 28 16:15:03 2016

This archive was generated by hypermail 2.1.8 : Sun Aug 28 2016 - 16:15:03 EEST