mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Fix build on 64bit platforms
This commit is contained in:
parent
a38acb6c73
commit
297c42cec8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197015
20
mbone/mcl/files/patch-rse_fec.cpp
Normal file
20
mbone/mcl/files/patch-rse_fec.cpp
Normal file
@ -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.
|
20
net/mcl/files/patch-rse_fec.cpp
Normal file
20
net/mcl/files/patch-rse_fec.cpp
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user