Fixing some particularly bad /W4.

This commit is contained in:
Ben Vanik
2015-07-18 23:04:21 -07:00
parent 4128727f6b
commit 91d7acf59e
34 changed files with 123 additions and 125 deletions

View File

@@ -917,7 +917,7 @@ int xe_xex2_find_import_infos(xe_xex2_ref xex,
auto header = xe_xex2_get_header(xex);
// Find library index for verification.
size_t library_index = -1;
size_t library_index = ~0ull;
for (size_t n = 0; n < header->import_library_count; n++) {
if (&header->import_libraries[n] == library) {
library_index = n;
@@ -995,7 +995,7 @@ int xe_xex2_get_import_infos(xe_xex2_ref xex,
auto header = xe_xex2_get_header(xex);
// Find library index for verification.
size_t library_index = -1;
size_t library_index = ~0ull;
for (size_t n = 0; n < header->import_library_count; n++) {
if (&header->import_libraries[n] == library) {
library_index = n;