Just modify the order, safe for passing a pointer which is equal to itself.