C code for subtensor don't work when the length is maximal

User picture
User picture