Defensive programming: mpd_isspecial(r) already implies mpd_isspecial(q), but

this is more readable.
This commit is contained in:
Stefan Krah 2012-04-20 21:00:31 +02:00
parent 3c23a87e58
commit 9d3a5aeabe

View file

@ -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;
}