Avoid calculating a pointer to the array end
use the same var name for array length