pgvector.git / summary / log / commit / refs
commit f8abeeb7940807c9fd69c44754eb50f61398aa7d
Author: Andrew Kane <andrew@ankane.org>
Date: Mon Oct 26 21:11:45 2026 +0000
Removed unneeded casting [skip ci]
src/sparsevec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sparsevec.c b/src/sparsevec.c
index 1e291397..7b064b09 100644
--- a/src/sparsevec.c
+++ b/src/sparsevec.c
@@ -27,7 +27,7 @@
#endif
#if PG_VERSION_NUM >= 190000
-#define palloc_array_checked(type, count) ((type *) palloc_array(type, count))
+#define palloc_array_checked(type, count) palloc_array(type, count)
#define repalloc_array_checked(pointer, type, count) repalloc_array(pointer, type, count)
#else
#define palloc_array_checked(type, count) ((type *) palloc(mul_size(sizeof(type), count)))
[parent: 1349865c08f0]