Return 0 if either inputs is negative

Again, I'm not sure about this, but anyway.