typesafe_cb: fix promotable types being incorrectly accepted by cast_if_type.
cast_if_type() should not try to degrade the expression using 1?(test):0, as that promotes bool to int, as well as degrading functions to function pointers: it should be done by the callers. In particular, this fixes sparse_bsearch.
Showing
Please register or sign in to comment