xls: avoid undefined C behaviour.