From 0dbc1a27c05f7cdabda3a493f891ce9d6d4d647e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 18 Jun 2026 12:56:57 -0700 Subject: [PATCH] Removed redundant check [skip ci] --- src/ivfflat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfflat.h b/src/ivfflat.h index 6e73aaf..9249bec 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -316,7 +316,7 @@ VectorArraySet(VectorArray arr, int offset, Pointer val) { Size size = VARSIZE_ANY(val); - if (offset >= arr->maxlen || size > arr->itemsize) + if (size > arr->itemsize) elog(ERROR, "safety check failed"); memcpy(VectorArrayGet(arr, offset), val, size);