Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Objective-C/Tests/VectorSearchTest+Lazy.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ - (CBLVectorIndexConfiguration*) lazyVectorIndexConfigWithExpression: (NSString*
NSArray<NSNumber*>* vector;
CBLQueryResult *result = [rs nextObject];
if (result) {
id value = [result arrayAtIndex: 0];
CBLArray* value = [result arrayAtIndex: 0];
if (value) {
vector = (NSArray<NSNumber*>*)value;
// Copy the values out of the fleece-backed CBLArray, which is only
// valid while the result set is alive:
vector = (NSArray<NSNumber*>*)[value toArray];
}
}
return vector;
Expand Down
Loading