Skip to content

Commit

Permalink
Another int to PDL_Indx fix for 64bit support.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmx committed Aug 31, 2015
1 parent 29a8e05 commit e7636f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Basic/Core/pdlapi.c
Expand Up @@ -462,7 +462,7 @@ void pdl_dump_trans_fixspace (pdl_trans *it, int nspac) {
void pdl_dump_fixspace(pdl *it,int nspac)
{
PDL_DECL_CHILDLOOP(it)
int i;
PDL_Indx i;
char spaces[PDL_MAXSPACE];
if (nspac >= PDL_MAXSPACE) {
printf("too many spaces requested: %d"
Expand Down Expand Up @@ -1403,11 +1403,11 @@ void pdl_make_physvaffine(pdl *it)
pdl_trans_affine *at;
pdl *parent;
pdl *current;
int *incsleft = 0;
PDL_Indx *incsleft = 0;
int i,j;
PDL_Indx inc;
PDL_Indx newinc;
int ninced;
PDL_Indx ninced;
int flag;
int incsign;

Expand Down Expand Up @@ -1437,12 +1437,12 @@ void pdl_make_physvaffine(pdl *it)
t=it->trans;
current = it;
while(t && (t->flags & PDL_ITRANS_ISAFFINE)) {
int cur_offset = 0;
PDL_Indx cur_offset = 0;
at = (pdl_trans_affine *)t;
parent = t->pdls[0];
/* For all dimensions of the childest piddle */
for(i=0; i<it->ndims; i++) {
int offset_left = it->vafftrans->offs;
PDL_Indx offset_left = it->vafftrans->offs;

/* inc = the increment at the current stage */
inc = it->vafftrans->incs[i];
Expand All @@ -1463,7 +1463,7 @@ void pdl_make_physvaffine(pdl *it)
ninced = inc / current->dimincs[j];
if(cur_offset + it->dims[i]*ninced >
current->dims[j]) {
int foo=
PDL_Indx foo =
(cur_offset + it->dims[i]*ninced)*
current->dimincs[j];
int k;
Expand Down

0 comments on commit e7636f5

Please sign in to comment.