I've changed this to raise a ``ValueError`` when negative values are passed.