Don't assign pointer to integer qstackindex