openbsd-ports/lang/php/5.2/patches/patch-ext_gmp_gmp_c
sthen 748511976d Use PATCHORIG, regen patches and rename the files which didn't match the
normal update-patches filenames. This avoids update-patches picking up the
.orig files in PHP distfiles and make it easier to keep in-sync. ok robert@
2011-06-18 19:49:22 +00:00

13 lines
496 B
Plaintext

$OpenBSD: patch-ext_gmp_gmp_c,v 1.2 2011/06/18 19:49:50 sthen Exp $
--- ext/gmp/gmp.c.orig.port Sun Jan 3 09:23:27 2010
+++ ext/gmp/gmp.c Sat Jun 18 12:44:55 2011
@@ -1396,7 +1396,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);
}