fix MSVC warning when implicitly converting size_t to ULONG (#495)

This commit is contained in:
Lucas Pimentel-Ordyna 2019-08-28 18:07:25 -04:00 committed by GitHub
parent 70b4b37535
commit 4c6d340758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -908,7 +908,7 @@ HRESULT CorProfiler::GenerateVoidILStartupMethod(const ModuleID module_id,
ELEMENT_TYPE_CLASS, // ret = System.AppDomain ELEMENT_TYPE_CLASS, // ret = System.AppDomain
// insert compressed token for System.AppDomain TypeRef here // insert compressed token for System.AppDomain TypeRef here
}; };
auto start_length = sizeof(appdomain_get_current_domain_signature_start); ULONG start_length = sizeof(appdomain_get_current_domain_signature_start);
BYTE system_appdomain_type_ref_compressed_token[4]; BYTE system_appdomain_type_ref_compressed_token[4];
ULONG token_length = CorSigCompressToken(system_appdomain_type_ref, system_appdomain_type_ref_compressed_token); ULONG token_length = CorSigCompressToken(system_appdomain_type_ref, system_appdomain_type_ref_compressed_token);
@ -949,7 +949,7 @@ HRESULT CorProfiler::GenerateVoidILStartupMethod(const ModuleID module_id,
ELEMENT_TYPE_U1 ELEMENT_TYPE_U1
}; };
start_length = sizeof(appdomain_load_signature_start); start_length = sizeof(appdomain_load_signature_start);
auto end_length = sizeof(appdomain_load_signature_end); ULONG end_length = sizeof(appdomain_load_signature_end);
BYTE system_reflection_assembly_type_ref_compressed_token[4]; BYTE system_reflection_assembly_type_ref_compressed_token[4];
token_length = CorSigCompressToken(system_reflection_assembly_type_ref, system_reflection_assembly_type_ref_compressed_token); token_length = CorSigCompressToken(system_reflection_assembly_type_ref, system_reflection_assembly_type_ref_compressed_token);