Improved safety check [skip ci]

This commit is contained in:
Andrew Kane
2024-04-15 14:50:28 -07:00
parent 7580e99205
commit f655166639

View File

@@ -900,7 +900,7 @@ sparsevec_l2_normalize(PG_FUNCTION_ARGS)
/* Safety check */
if (j == newResult->nnz)
break;
elog(ERROR, "safety check failed");
newResult->indices[j] = result->indices[i];
nx[j] = rx[i];