]> granicus.if.org Git - python/commit
_PyLong_Sign(): remove an assert that needed a variable ndigits that
authorGuido van Rossum <guido@python.org>
Mon, 3 Feb 2003 15:28:19 +0000 (15:28 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Feb 2003 15:28:19 +0000 (15:28 +0000)
commit004a65c9b10718c9f0089125f3cbbfac2a754804
treef062d9f975fc3fe37946dbb9a6e1419be68acea4
parent7aa56c9a7f3b23fa5634ae62ae881a0c94f21ab6
_PyLong_Sign(): remove an assert that needed a variable ndigits that
wasn't used outside the assert (and hence caused a compiler warning
about an unused variable in NDEBUG mode).  The assert wasn't very
useful any more.

_PyLong_NumBits(): moved the calculation of ndigits after asserting
that v != NULL.
Objects/longobject.c