aboutsummaryrefslogtreecommitdiffstats
path: root/mbone
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2007-08-03 20:03:06 +0800
committerarved <arved@FreeBSD.org>2007-08-03 20:03:06 +0800
commit57b08b6fec34270a71667920fe86b07fc664a352 (patch)
tree1f0ec5628209be6a05b4c3d1b685509119b1bc18 /mbone
parent10668cb514e6cad7941d7b4bd89033b9c751b18b (diff)
downloadfreebsd-ports-gnome-57b08b6fec34270a71667920fe86b07fc664a352.tar.gz
freebsd-ports-gnome-57b08b6fec34270a71667920fe86b07fc664a352.tar.zst
freebsd-ports-gnome-57b08b6fec34270a71667920fe86b07fc664a352.zip
Fix build on 64bit platforms
Diffstat (limited to 'mbone')
-rw-r--r--mbone/mcl/files/patch-rse_fec.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/mbone/mcl/files/patch-rse_fec.cpp b/mbone/mcl/files/patch-rse_fec.cpp
new file mode 100644
index 000000000000..70ea7a5e9790
--- /dev/null
+++ b/mbone/mcl/files/patch-rse_fec.cpp
@@ -0,0 +1,20 @@
+--- src/common/rse_fec.cpp.orig 2007-08-03 13:59:09.000000000 +0200
++++ src/common/rse_fec.cpp 2007-08-03 14:00:41.000000000 +0200
+@@ -679,7 +679,7 @@
+ struct fec_parms *p = (struct fec_parms *)p_vp; /* VR */
+ #endif /* CPLUSPLUS_COMPATIBLE */
+ if (p==NULL ||
+- p->magic != ( ( (FEC_MAGIC ^ p->k) ^ p->n) ^ (int)(p->enc_matrix)) ) {
++ p->magic != ( ( (FEC_MAGIC ^ p->k) ^ p->n) ^ (intptr_t)(p->enc_matrix)) ) {
+ PRINT_ERR((mcl_stderr, "bad parameters to fec_free\n"))
+ return ;
+ }
+@@ -715,7 +715,7 @@
+ retval->k = k ;
+ retval->n = n ;
+ retval->enc_matrix = NEW_GF_MATRIX(n, k);
+- retval->magic = ( ( FEC_MAGIC ^ k) ^ n) ^ (int)(retval->enc_matrix) ;
++ retval->magic = ( ( FEC_MAGIC ^ k) ^ n) ^ (intptr_t)(retval->enc_matrix) ;
+ tmp_m = NEW_GF_MATRIX(n, k);
+ /*
+ * fill the matrix with powers of field elements, starting from 0.