Address Android warning error (#22285)

### Description
<!-- Describe your changes. -->

### Motivation and Context
Build issue
https://github.com/microsoft/onnxruntime/pull/22046#issuecomment-2386414899
This commit is contained in:
Dmitri Smirnov 2024-10-01 13:52:25 -07:00 committed by GitHub
parent c24e55b1f1
commit 1fc2b94644
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4457,7 +4457,7 @@ static Ort::LoraAdapter CreateAdapterFromArray() {
EXPECT_TRUE(adapter_file.is_open());
adapter_file.seekg(0, std::ios::end);
const size_t adapter_size = adapter_file.tellg();
const size_t adapter_size = onnxruntime::narrow<size_t>(adapter_file.tellg());
std::vector<uint8_t> buffer(adapter_size);
adapter_file.seekg(0, std::ios::beg);