pgvector.git / summary / log / commit / refs
commit 7463c52cc1d097764579c5ef0b52fcb7b53978ee
Author: Andrew Kane <andrew@ankane.org>
Date: Fri Aug 14 00:57:30 2026 +0000
Fixed conversion warnings [skip ci]
src/hnswscan.c | 4 ++--
src/ivfscan.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/hnswscan.c b/src/hnswscan.c
index 1c50efbd..9b006212 100644
--- a/src/hnswscan.c
+++ b/src/hnswscan.c
@@ -177,10 +177,10 @@ hnswrescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int no
MemoryContextReset(so->tmpCtx);
if (keys && scan->numberOfKeys > 0)
- memmove(scan->keyData, keys, scan->numberOfKeys * sizeof(ScanKeyData));
+ memmove(scan->keyData, keys, (Size) scan->numberOfKeys * sizeof(ScanKeyData));
if (orderbys && scan->numberOfOrderBys > 0)
- memmove(scan->orderByData, orderbys, scan->numberOfOrderBys * sizeof(ScanKeyData));
+ memmove(scan->orderByData, orderbys, (Size) scan->numberOfOrderBys * sizeof(ScanKeyData));
}
/*
diff --git a/src/ivfscan.c b/src/ivfscan.c
index 1408a8ef..27cb48fb 100644
--- a/src/ivfscan.c
+++ b/src/ivfscan.c
@@ -348,10 +348,10 @@ ivfflatrescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int
}
if (keys && scan->numberOfKeys > 0)
- memmove(scan->keyData, keys, scan->numberOfKeys * sizeof(ScanKeyData));
+ memmove(scan->keyData, keys, (Size) scan->numberOfKeys * sizeof(ScanKeyData));
if (orderbys && scan->numberOfOrderBys > 0)
- memmove(scan->orderByData, orderbys, scan->numberOfOrderBys * sizeof(ScanKeyData));
+ memmove(scan->orderByData, orderbys, (Size) scan->numberOfOrderBys * sizeof(ScanKeyData));
}
/*
[parent: a0bd768bcb00]