some small pvs warning fixes
This commit is contained in:
parent
b36bd990aa
commit
19cd8f5384
|
@ -542,7 +542,7 @@ static void UpdateModel(CPpmd7 *p)
|
|||
s->Freq <<= 1;
|
||||
else
|
||||
s->Freq = MAX_FREQ - 4;
|
||||
c->SummFreq = (UInt16)(s->Freq + p->InitEsc + (ns > 3));
|
||||
c->SummFreq = (UInt16)(s->Freq + p->InitEsc + (ns >> 3));
|
||||
}
|
||||
cf = 2 * (UInt32)p->FoundState->Freq * (c->SummFreq + 6);
|
||||
sf = (UInt32)s0 + c->SummFreq;
|
||||
|
|
|
@ -276,7 +276,7 @@ static bool patchApplyUPS(const char *patchname, u8 **rom, int *size)
|
|||
static int ppfVersion(FILE *f)
|
||||
{
|
||||
fseeko64(f, 0, SEEK_SET);
|
||||
if (fgetc(f) != 'P' || fgetc(f) != 'P' || fgetc(f) != 'F')
|
||||
if (fgetc(f) != 'P' || fgetc(f) != 'P' || fgetc(f) != 'F') //-V501
|
||||
return 0;
|
||||
switch(fgetc(f)){
|
||||
case '1': return 1;
|
||||
|
|
|
@ -1058,7 +1058,7 @@ void elfParseCFA(u8 *top)
|
|||
|
||||
if(id == 0xffffffff) {
|
||||
// skip version
|
||||
*data++;
|
||||
(*data++);
|
||||
|
||||
ELFcie *cie = (ELFcie *)calloc(1, sizeof(ELFcie));
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ bool remoteTcpInit()
|
|||
|
||||
remoteListenSocket = s;
|
||||
|
||||
if(s < 0) {
|
||||
if(s == INVALID_SOCKET) {
|
||||
fprintf(stderr,"Error opening socket\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ void rpiFilter(u8 *srcPtr, u32 srcPitch, u8 *deltaPtr, u8 *dstPtr, u32 dstPitch,
|
|||
*(pOCur++) = ((*pICur & 0xF800) << rshiftDiff) |
|
||||
((*pICur & 0x07E0) << gshiftDiff) |
|
||||
((*pICur & 0x001F) << bshiftDiff);
|
||||
*pICur++;
|
||||
*(pICur++);
|
||||
}
|
||||
pI = pICur = (u16 *)((char *)pI + dstPitch);
|
||||
pO = pOCur = (u32 *)((char *)pO + dstPitch);
|
||||
|
@ -157,7 +157,7 @@ void rpiFilter(u8 *srcPtr, u32 srcPitch, u8 *deltaPtr, u8 *dstPtr, u32 dstPitch,
|
|||
*(pOCur++) = ((*pICur & 0xF800) >> rshiftDiff) |
|
||||
((*pICur & 0x07E0) << gshiftDiff) |
|
||||
((*pICur & 0x001F) << bshiftDiff);
|
||||
*pICur++;
|
||||
*(pICur++);
|
||||
}
|
||||
pI = pICur = (u16 *)((char *)pI + dstPitch);
|
||||
pO = pOCur = (u32 *)((char *)pO + dstPitch);
|
||||
|
|
Loading…
Reference in New Issue