diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-03 12:03:06 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-03 12:03:06 +0000 |
commit | 297c42cec85bc215268d0df4b6f6bad32d179771 (patch) | |
tree | f7baf2e9bed1e37923be3a9bf23924c8d423c0bb /net/mcl | |
parent | a38acb6c73a498fc01a10f5f1de3b9477365d62f (diff) | |
download | ports-297c42cec85bc215268d0df4b6f6bad32d179771.tar.gz ports-297c42cec85bc215268d0df4b6f6bad32d179771.zip |
Fix build on 64bit platforms
Notes
Notes:
svn path=/head/; revision=197015
Diffstat (limited to 'net/mcl')
-rw-r--r-- | net/mcl/files/patch-rse_fec.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/mcl/files/patch-rse_fec.cpp b/net/mcl/files/patch-rse_fec.cpp new file mode 100644 index 000000000000..70ea7a5e9790 --- /dev/null +++ b/net/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. |