1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix build on 64bit platforms

This commit is contained in:
Tilman Keskinoz 2007-08-03 12:03:06 +00:00
parent a38acb6c73
commit 297c42cec8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197015
2 changed files with 40 additions and 0 deletions

View 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.

View 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.