mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Defensive programming: mpd_isspecial(r) already implies mpd_isspecial(q), but
this is more readable.
This commit is contained in:
parent
3c23a87e58
commit
9d3a5aeabe
1 changed files with 1 additions and 0 deletions
|
@ -3530,6 +3530,7 @@ _mpd_qdiv(int action, mpd_t *q, const mpd_t *a, const mpd_t *b,
|
|||
MPD_NEW_STATIC(r,0,0,0,0);
|
||||
_mpd_base_ndivmod(q, &r, a, b, status);
|
||||
if (mpd_isspecial(q) || mpd_isspecial(&r)) {
|
||||
mpd_setspecial(q, MPD_POS, MPD_NAN);
|
||||
mpd_del(&r);
|
||||
goto finish;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue