Tune some MSVC warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2016-12-16 20:38:57 +01:00
parent c51864ca39
commit 0b4ac35bc9
7 changed files with 16 additions and 11 deletions
+4 -4
View File
@@ -393,7 +393,7 @@ void PeFile32::processRelocs() // pass1
for (ic = 1; ic <= 3; ic++)
{
qsort(fix[ic], xcounts[ic], 4, le32_compare);
unsigned prev = ~0;
unsigned prev = ~0u;
unsigned jc = 0;
for (unsigned kc = 0; kc < xcounts[ic]; kc++)
if (fix[ic][kc] != prev)
@@ -491,7 +491,7 @@ void PeFile64::processRelocs() // pass1
for (ic = 1; ic <= 15; ic++)
{
qsort(fix[ic], xcounts[ic], 4, le32_compare);
unsigned prev = ~0;
unsigned prev = ~0u;
unsigned jc = 0;
for (unsigned kc = 0; kc < xcounts[ic]; kc++)
if (fix[ic][kc] != prev)
@@ -1341,7 +1341,7 @@ void PeFile::processTls2(Reloc *rel,const Interval *iv,unsigned newaddr,
return;
// add new relocation entries
if (tls_handler_offset_reloc > 0)
if __acc_cte(tls_handler_offset_reloc > 0)
rel->add(tls_handler_offset + tls_handler_offset_reloc, reloc_type);
unsigned ic;
@@ -1808,7 +1808,7 @@ static bool match(unsigned itype, const unsigned char *ntype,
};
// FIXME this comparison is not too exact
while (1)
for (;;)
{
char const *delim1 = strchr(keep, '/');
char const *delim2 = strchr(keep, ',');