Apparently, I was getting a number so close to -1 (but just under) that it just printed as -1. Fuck off.