ab79cf8bc7
gmp modified some if it's internal constants, in particular __GMP_BITS_PER_MP_LIMB. Added a patch to substitute GMP_LIMB_BITS. Also bumped release number and copyright date. Signed-off-by: Russell Senior <russell@personaltelco.net> Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@35955 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
372 B
Diff
12 lines
372 B
Diff
--- a/ext/gmp/gmp.c
|
|
+++ b/ext/gmp/gmp.c
|
|
@@ -1159,7 +1159,7 @@ ZEND_FUNCTION(gmp_random)
|
|
|
|
GMPG(rand_initialized) = 1;
|
|
}
|
|
- mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB);
|
|
+ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS);
|
|
|
|
ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp);
|
|
}
|