summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float_parse.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-25 22:59:19 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-25 22:59:19 +1100
commitf75c7ad1a9dcfa2cfe5ccd12dda7c396a6bd973c (patch)
tree9e70a02ef1368b843f83e33028096804cd488b64 /tests/float/float_parse.py
parent77a62d8b5add1c6feea307a2b6c23552cdac05ce (diff)
downloadmicropython-f75c7ad1a9dcfa2cfe5ccd12dda7c396a6bd973c.tar.gz
micropython-f75c7ad1a9dcfa2cfe5ccd12dda7c396a6bd973c.zip
py/mpz: In mpz_clone, remove unused check for NULL dig.
This path for src->deg==NULL is never used because mpz_clone() is always called with an argument that has a non-zero integer value, and hence has some digits allocated to it (mpz_clone() is a static function private to mpz.c all callers of this function first check if the integer value is zero and if so take a special-case path, bypassing the call to mpz_clone()). There is some unused and commented-out functions that may actually pass a zero-valued mpz to mpz_clone(), so some TODOs are added to these function in case they are needed in the future.
Diffstat (limited to 'tests/float/float_parse.py')
0 files changed, 0 insertions, 0 deletions