summaryrefslogtreecommitdiff
path: root/math/php4-gmp/files/patch-gmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/php4-gmp/files/patch-gmp.c')
-rw-r--r--math/php4-gmp/files/patch-gmp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/php4-gmp/files/patch-gmp.c b/math/php4-gmp/files/patch-gmp.c
new file mode 100644
index 000000000000..816d0f9b0f92
--- /dev/null
+++ b/math/php4-gmp/files/patch-gmp.c
@@ -0,0 +1,11 @@
+--- gmp.c.orig 2010-04-13 14:04:55.000000000 +0200
++++ gmp.c 2010-04-13 14:05:23.000000000 +0200
+@@ -1159,7 +1159,7 @@
+
+ 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);
+ }