The length of a chain complex is defined to be the difference between the smallest and largest indices of spots occupied by modules, even if those modules happen to be zero.