Skip to content

Commit 0912989

Browse files
committed
Fix copyFrom argument (should be const char*)
1 parent 17ef9d3 commit 0912989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hnswlib/hnswlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class ChunkedArray {
502502
}
503503
}
504504

505-
void copyFrom(char* source, size_t num_bytes) {
505+
void copyFrom(const char* source, size_t num_bytes) {
506506
size_t chunk_index = 0;
507507
size_t bytes_per_chunk = getSizePerChunk();
508508
while (num_bytes > 0) {

0 commit comments

Comments
 (0)