F*ck MSVC
warning C4245: 'return': conversion from 'int' to 'unsigned int', signed/unsigned mismatch
return ~0; // in function declared as returning 'unsigned'. The bits are the same!
modified: p_lx_elf.cpp
This commit is contained in:
parent
7a09c88e30
commit
f8934c09ff
@ -1961,7 +1961,7 @@ unsigned PackLinuxElf32::elf_find_table_size(unsigned dt_type, unsigned sh_type)
|
||||
if (~0u != y_ndx) {
|
||||
return dt_offsets[1+ y_ndx] - dt_offsets[y_ndx];
|
||||
}
|
||||
return ~0;
|
||||
return ~0u;
|
||||
}
|
||||
|
||||
void
|
||||
@ -7187,7 +7187,7 @@ unsigned PackLinuxElf64::elf_find_table_size(unsigned dt_type, unsigned sh_type)
|
||||
if (~0u != y_ndx) {
|
||||
return dt_offsets[1+ y_ndx] - dt_offsets[y_ndx];
|
||||
}
|
||||
return ~0;
|
||||
return ~0u;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user