On Wed, 20 Nov 2019 05:42:39 -0500, Andras Farkas wrote:

> Out of curiosity, why not just use stdbool.h if these are actually
> meant to be booleans?  Wouldn't that be more readable?
> I wonder if there's something I'm not understanding.

Changing from int -> bool is error prone since you inevitably have
code that use true, false and -1.  Finding those outliers that are
relying on the type being int is not always easy.  Speaking from
personal experiance, it is easy to introduce bugs this way.

 - todd

Reply via email to