mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
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:
parent
c24e55b1f1
commit
1fc2b94644
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue