diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2012-06-30 20:36:12 (GMT) |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2012-06-30 20:36:12 (GMT) |
commit | b14168d64ad594ead0c1d76f481fb93a038ee7bb (patch) | |
tree | fdd6390f01bea03762c1de177b72036b62bacb34 /Modules | |
parent | 36f98051af3436b3642ee804063a6a99e2c221f6 (diff) | |
parent | 5431e3085329bd6e78b1b72d74e8445f420a5f74 (diff) | |
download | cpython-b14168d64ad594ead0c1d76f481fb93a038ee7bb.zip cpython-b14168d64ad594ead0c1d76f481fb93a038ee7bb.tar.gz cpython-b14168d64ad594ead0c1d76f481fb93a038ee7bb.tar.bz2 |
null merge
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_decimal/libmpdec/mpdecimal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c index b5f7808..b234400 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.c +++ b/Modules/_decimal/libmpdec/mpdecimal.c @@ -7707,7 +7707,7 @@ _baseconv_to_smaller(uint32_t **w, size_t wlen, uint32_t wbase, wlen = n+1; } (*w)[n++] = (uint32_t)_mpd_shortdiv_b(u, u, ulen, wbase, ubase); - /* ulen will be at least 1. u[ulen-1] can only be zero if ulen == 1 */ + /* ulen is at least 1. u[ulen-1] can only be zero if ulen == 1. */ ulen = _mpd_real_size(u, ulen); } while (u[ulen-1] != 0); @@ -8041,7 +8041,7 @@ mpd_qimport_u16(mpd_t *result, usrc[n] = srcdata[n]; } - if (!mpd_qresize_zero(result, rlen, status)) { + if (!mpd_qresize(result, rlen, status)) { goto finish; } @@ -8084,7 +8084,7 @@ mpd_qimport_u32(mpd_t *result, return; } - if (!mpd_qresize_zero(result, rlen, status)) { + if (!mpd_qresize(result, rlen, status)) { return; } @@ -8094,7 +8094,7 @@ mpd_qimport_u32(mpd_t *result, status); #else if (srcbase == MPD_RADIX) { - if (!mpd_qresize_zero(result, srclen, status)) { + if (!mpd_qresize(result, srclen, status)) { return; } memcpy(result->data, srcdata, srclen * (sizeof *srcdata)); |