Skip to content

Commit

Permalink
int -> size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund committed Mar 29, 2024
1 parent 7972698 commit e38083d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,8 +1319,8 @@ TEST_CASE("[Faunus] rootMeanSquareDeviation") {
* - https://en.wikipedia.org/wiki/Geodesic_polyhedron
* - c++: https://github.com/caosdoar/spheres
*/
std::vector<Point> TwobodyAngles::fibonacciSphere(const int samples) {
int cnt = 0;
std::vector<Point> TwobodyAngles::fibonacciSphere(const size_t samples) {
unsigned int cnt = 0;
const auto phi = pc::pi * (3.0 - std::sqrt(5.0)); // golden angle in radians
std::vector<Point> unit_points_on_sphere;
unit_points_on_sphere.resize(samples);
Expand Down
2 changes: 1 addition & 1 deletion src/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ std::pair<Cuboid, ParticleVector> hexagonalPrismToCuboid(const HexagonalPrism& h
* ~~~
*/
class TwobodyAngles {
static std::vector<Point> fibonacciSphere(int);
static std::vector<Point> fibonacciSphere(size_t);

public:
std::vector<Eigen::Quaterniond> quaternions_1; //!< Quaternions to explore all Euler angles
Expand Down

0 comments on commit e38083d

Please sign in to comment.