Undid removal of "!= 0" that happened in the recent reversion of datum_t::cmp changes.