Don't assign integer qstackindex a pointer