Skip to content

Commit

Permalink
Switched to stof
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 28, 2024
1 parent 166727f commit 6d5b979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pqxx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ template <> struct string_traits<pgvector::Vector> {
while (ss.good()) {
std::string substr;
getline(ss, substr, ',');
result.push_back(std::stod(substr));
result.push_back(std::stof(substr));
}
return pgvector::Vector(result);
}
Expand Down Expand Up @@ -77,7 +77,7 @@ template <> struct string_traits<pgvector::HalfVector> {
while (ss.good()) {
std::string substr;
getline(ss, substr, ',');
result.push_back(std::stod(substr));
result.push_back(std::stof(substr));
}
return pgvector::HalfVector(result);
}
Expand Down

0 comments on commit 6d5b979

Please sign in to comment.