Can someone explain why changing the short to a long means that d will now be > 0?