fix warning in compare_less