From f35e8f7420d85fb642b8d12f0e434ab445a9dc94 Mon Sep 17 00:00:00 2001 From: Spade A <71589810+SpadeA-Tang@users.noreply.github.com> Date: Tue, 29 Apr 2025 13:19:25 +0800 Subject: [PATCH] fix: fix arm64 compile issue (#41593) issue: https://github.com/milvus-io/milvus/issues/41059, https://github.com/milvus-io/milvus/issues/41510 Signed-off-by: SpadeA --- .../core/thirdparty/tantivy/tantivy-binding/src/index_writer.rs | 2 +- .../tantivy/tantivy-binding/src/index_writer_v5/index_writer.rs | 2 +- .../tantivy/tantivy-binding/src/index_writer_v7/index_writer.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer.rs b/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer.rs index 9049f0238f..db1f0767d0 100644 --- a/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer.rs +++ b/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer.rs @@ -116,7 +116,7 @@ impl IndexWriterWrapper { pub fn add_json_key_stats( &mut self, - keys: &[*const i8], + keys: &[*const c_char], json_offsets: &[*const i64], json_offsets_len: &[usize], ) -> Result<()> { diff --git a/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v5/index_writer.rs b/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v5/index_writer.rs index c0738bbc7d..50edb9b8f6 100644 --- a/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v5/index_writer.rs +++ b/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v5/index_writer.rs @@ -190,7 +190,7 @@ impl IndexWriterWrapperImpl { pub fn add_json_key_stats( &mut self, - keys: &[*const i8], + keys: &[*const c_char], json_offsets: &[*const i64], json_offsets_len: &[usize], ) -> Result<()> { diff --git a/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v7/index_writer.rs b/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v7/index_writer.rs index 37cc7e2e58..5c33bd55fa 100644 --- a/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v7/index_writer.rs +++ b/internal/core/thirdparty/tantivy/tantivy-binding/src/index_writer_v7/index_writer.rs @@ -160,7 +160,7 @@ impl IndexWriterWrapperImpl { pub fn add_json_key_stats( &mut self, - keys: &[*const i8], + keys: &[*const c_char], json_offsets: &[*const i64], json_offsets_len: &[usize], ) -> Result<()> {