On Thursday 28 January 2010, David Brownell wrote: > If you want to know why the standard uses 1, there are > probably rationale documents circulating. I'd guess > one of the reasons is to facilitate "bool == bit" type > implementations ... signed bits are nonsensical!
Oh, and one more reason: "a == a" has been defined to be 1 for a long time, like "a != a" is 0. That allows "if ((a == b) == true) ... " etc. - Dave _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development