tally: Fix a c++ warning