summaryrefslogtreecommitdiff
path: root/mpz/mul_i.h
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2008-02-27 15:58:26 +0100
committertege <tege@gmplib.org>2008-02-27 15:58:26 +0100
commita700189ebf54bf80579c6295f0db149e58210dab (patch)
treef9b2085a74eee33f277334115a13f9ea630b58ba /mpz/mul_i.h
parentb17ef8110b07d1508a3e8339eb296f8653fb3e38 (diff)
downloadgmp-a700189ebf54bf80579c6295f0db149e58210dab.tar.gz
Check sml's size (not the signed small_mult).
Diffstat (limited to 'mpz/mul_i.h')
-rw-r--r--mpz/mul_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/mul_i.h b/mpz/mul_i.h
index 3e1cac0b1..d86196049 100644
--- a/mpz/mul_i.h
+++ b/mpz/mul_i.h
@@ -1,7 +1,7 @@
/* mpz_mul_ui/si (product, multiplier, small_multiplicand) -- Set PRODUCT to
MULTIPLICATOR times SMALL_MULTIPLICAND.
-Copyright 1991, 1993, 1994, 1996, 2000, 2001, 2002, 2005 Free Software
+Copyright 1991, 1993, 1994, 1996, 2000, 2001, 2002, 2005, 2008 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -60,7 +60,7 @@ FUNCTION (mpz_ptr prod, mpz_srcptr mult,
sml = MULTIPLICAND_ABS (small_mult);
- if (small_mult <= GMP_NUMB_MAX)
+ if (sml <= GMP_NUMB_MAX)
{
MPZ_REALLOC (prod, size + 1);
pp = PTR(prod);