mirror of
https://github.com/fachat/xa65.git
synced 2024-09-27 17:57:51 +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:
parent
eff641bcff
commit
5cdf223e2b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user