Skip to content

Commit

Permalink
Address Android warning error (#22285)
Browse files Browse the repository at this point in the history
### Description
<!-- Describe your changes. -->

### Motivation and Context
Build issue
#22046 (comment)
  • Loading branch information
yuslepukhin authored Oct 1, 2024
1 parent c24e55b commit 1fc2b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/test/shared_lib/test_inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1fc2b94

Please sign in to comment.