comparison Plugins/Input/sexypsf/PsxMem.c @ 701:d539e5c5f730 trunk

[svn] Fixes of the remaining GCC 4.1 warnings from external contributor Diego "Flameeyes" Petteno (Gentoo).
author chainsaw
date Sun, 26 Feb 2006 13:08:35 -0800
parents f26682a2825b
children
comparison
equal deleted inserted replaced
700:99382cddf771 701:d539e5c5f730
29 if(address&65535) 29 if(address&65535)
30 { 30 {
31 u32 tmplen; 31 u32 tmplen;
32 32
33 //puts("Squishy"); 33 //puts("Squishy");
34 tmplen=((65536-(address&65535))>length)?length:65536-(address&65535); 34 tmplen=((65536-(address&65535))>(u32)length)?(u32)length:65536-(address&65535);
35 if(psxMemLUT[address>>16]) 35 if(psxMemLUT[address>>16])
36 memcpy((char *)(psxMemLUT[address>>16]+(address&65535)),data,tmplen); 36 memcpy((char *)(psxMemLUT[address>>16]+(address&65535)),data,tmplen);
37 address+=tmplen; 37 address+=tmplen;
38 data+=tmplen; 38 data+=tmplen;
39 length-=tmplen; 39 length-=tmplen;