mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-06 09:18:52 +00:00
Fixed conversion warnings [skip ci]
This commit is contained in:
1 parent
1b03f094ee
commit
a0bd768bcb
10 files changed
+19
-19
No files matched your search
+2
-2
@@ -392,7 +392,7 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
||||
CheckDim(dim);
|
||||
CheckExpectedDim(typmod, dim);
|
||||
|
||||
qsort(elements, nnz, sizeof(SparseInputElement), CompareIndices);
|
||||
qsort(elements, (Size) nnz, sizeof(SparseInputElement), CompareIndices);
|
||||
|
||||
result = InitSparseVector(dim, nnz);
|
||||
rvalues = SPARSEVEC_VALUES(result);
|
||||
@@ -449,7 +449,7 @@ sparsevec_out(PG_FUNCTION_ARGS)
|
||||
*
|
||||
* 4 bytes for {, }, /, and \0
|
||||
*/
|
||||
buf = (char *) palloc(add_size(mul_size(12 + FLOAT_SHORTEST_DECIMAL_LEN, sparsevec->nnz), 15));
|
||||
buf = (char *) palloc(add_size(mul_size(12 + FLOAT_SHORTEST_DECIMAL_LEN, (Size) sparsevec->nnz), 15));
|
||||
ptr = buf;
|
||||
|
||||
AppendChar(ptr, '{');
|
||||
|
||||
Reference in new issue
Block a user