From 1fc2b94644f51f52c1defed71ee6093e4d0b85c3 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Tue, 1 Oct 2024 13:52:25 -0700 Subject: [PATCH] Address Android warning error (#22285) ### Description ### Motivation and Context Build issue https://github.com/microsoft/onnxruntime/pull/22046#issuecomment-2386414899 --- onnxruntime/test/shared_lib/test_inference.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/test/shared_lib/test_inference.cc b/onnxruntime/test/shared_lib/test_inference.cc index 782992e90b..6782215fcd 100644 --- a/onnxruntime/test/shared_lib/test_inference.cc +++ b/onnxruntime/test/shared_lib/test_inference.cc @@ -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(adapter_file.tellg()); std::vector buffer(adapter_size); adapter_file.seekg(0, std::ios::beg);