1
0
mirror of https://github.com/fachat/xa65.git synced 2024-06-17 20:29:32 +00:00

Windows: fix warnings about casting pointer to int of a different size

On Windows x64, long is 32-bit, while a pointer is 64-bit (on Linux both
long and pointers are 64-bit), this removes the useless casts triggering
the warnings.
This commit is contained in:
compyx 2020-05-23 13:02:00 +02:00
parent eff641bcff
commit 5cdf223e2b

View File

@ -595,7 +595,7 @@ int pp_replace(char *to, char *ti, int a,int b)
if(!er)
er=pp_replace(fto,fti,rlist,rlist+i);
/* if(flag) printf("sl=%d,",sl);*/
sl=(int)((long)y+1L-(long)t);
sl=(int)(y +1 - t);
/* if(flag) printf("sl=%d\n",sl);*/
rs=fto;
/* printf("->%s\n",fto);*/
@ -706,7 +706,7 @@ int pp_replace(char *to, char *ti, int a,int b)
}
if(!er)
er=pp_replace(fto,fti,0,rlist+i);
sl=(int)((long)y+1L-(long)t);
sl=(int)(y + 1 - t);
rs=fto;
}
}