diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:09:18 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:09:18 +0100 |
commit | 548dda66b59dfd7f131c3801100b3af008323ef0 (patch) | |
tree | 6676afe67b2b5e1f2b9bffb35c462e74125661c9 /mpf | |
parent | 6138b90d3b87d4c98d8d4694b27a0538b7e70855 (diff) | |
download | gmp-548dda66b59dfd7f131c3801100b3af008323ef0.tar.gz |
Add cast to avoid overflow of (later ignored) argument.
Diffstat (limited to 'mpf')
-rw-r--r-- | mpf/clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/clear.c b/mpf/clear.c index e38ff8aee..cfb8482c2 100644 --- a/mpf/clear.c +++ b/mpf/clear.c @@ -24,5 +24,5 @@ along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ void mpf_clear (mpf_ptr m) { - (*__gmp_free_func) (m->_mp_d, (m->_mp_prec + 1) * BYTES_PER_MP_LIMB); + (*__gmp_free_func) (m->_mp_d, (size_t) (m->_mp_prec + 1) * BYTES_PER_MP_LIMB); } |