On Tue, 31 Jan 2006, Kyle Hamilton wrote: > I forget the order of precedence -- does the unary ! have a higher > priority than the comparison operator != ?
Yes. http://www.isthe.com/chongo/tech/comp/c/c-precedence.html > > i.e., the original code is > > if (!(data->state) != BIO_CONN_S_OK) > > What on earth is this supposed to do? > > data->state == (anything except 0): > !(data->state) == 0. > if (0 != BIO_CONN_S_OK)? > > data->state == 0: > !(data->state) == 1. > if (1 != BIO_CONN_S_OK)? > > -Kyle H > [snip] -- Tim Rice Multitalents (707) 887-1469 [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]