pgvector.git / summary / log / commit / refs

commit    eb99730d87d7b3dff48e69858a831cb04b698fa4
Author:   Andrew Kane <andrew@ankane.org>
Date:     Fri Feb 11 11:43:31 2022 +0000

    Removed unnecessary cast [skip ci]


src/ivfkmeans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index 78b4f519..e8c2c955 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -208,8 +208,8 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers) if (totalSize / 1024 > maintenance_work_mem) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), - errmsg("memory required is %zu MB, maintenance_work_mem is %zu MB", - totalSize / (1024 * 1024) + 1, ((Size) maintenance_work_mem) / 1024))); + errmsg("memory required is %zu MB, maintenance_work_mem is %d MB", + totalSize / (1024 * 1024) + 1, maintenance_work_mem / 1024))); /* Set support functions */ procinfo = index_getprocinfo(index, 1, IVFFLAT_KMEANS_DISTANCE_PROC); [parent: e5da5cc53282]