summaryrefslogtreecommitdiff
path: root/mpq
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2014-01-19 13:09:18 +0100
committerTorbjorn Granlund <tege@gmplib.org>2014-01-19 13:09:18 +0100
commit548dda66b59dfd7f131c3801100b3af008323ef0 (patch)
tree6676afe67b2b5e1f2b9bffb35c462e74125661c9 /mpq
parent6138b90d3b87d4c98d8d4694b27a0538b7e70855 (diff)
downloadgmp-548dda66b59dfd7f131c3801100b3af008323ef0.tar.gz
Add cast to avoid overflow of (later ignored) argument.
Diffstat (limited to 'mpq')
-rw-r--r--mpq/clear.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpq/clear.c b/mpq/clear.c
index 7f470c0a4..1587ff143 100644
--- a/mpq/clear.c
+++ b/mpq/clear.c
@@ -24,7 +24,7 @@ void
mpq_clear (MP_RAT *m)
{
(*__gmp_free_func) (PTR(NUM(m)),
- ALLOC(NUM(m)) * BYTES_PER_MP_LIMB);
+ (size_t) ALLOC(NUM(m)) * BYTES_PER_MP_LIMB);
(*__gmp_free_func) (PTR(DEN(m)),
- ALLOC(DEN(m)) * BYTES_PER_MP_LIMB);
+ (size_t) ALLOC(DEN(m)) * BYTES_PER_MP_LIMB);
}