We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a48e54c commit f91c13cCopy full SHA for f91c13c
1 file changed
include/pgvector/pqxx.hpp
@@ -246,7 +246,7 @@ template<> struct string_traits<pgvector::SparseVector> {
246
if (i != 0) {
247
here += pqxx::into_buf(buf.subspan(here), ",", c);
248
}
249
- // cast to prevent undefined behavior on overflow and require less buffer space
+ // cast to prevent undefined behavior and require less buffer space
250
here += pqxx::into_buf(buf.subspan(here), static_cast<unsigned int>(indices[i]) + 1, c);
251
here += pqxx::into_buf(buf.subspan(here), ":", c);
252
here += pqxx::into_buf(buf.subspan(here), values[i], c);
0 commit comments