Skip to content

Commit e38083d

Browse files
committed
int -> size_t
1 parent 7972698 commit e38083d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/geometry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1319,8 +1319,8 @@ TEST_CASE("[Faunus] rootMeanSquareDeviation") {
13191319
* - https://en.wikipedia.org/wiki/Geodesic_polyhedron
13201320
* - c++: https://github.com/caosdoar/spheres
13211321
*/
1322-
std::vector<Point> TwobodyAngles::fibonacciSphere(const int samples) {
1323-
int cnt = 0;
1322+
std::vector<Point> TwobodyAngles::fibonacciSphere(const size_t samples) {
1323+
unsigned int cnt = 0;
13241324
const auto phi = pc::pi * (3.0 - std::sqrt(5.0)); // golden angle in radians
13251325
std::vector<Point> unit_points_on_sphere;
13261326
unit_points_on_sphere.resize(samples);

Diff for: src/geometry.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ std::pair<Cuboid, ParticleVector> hexagonalPrismToCuboid(const HexagonalPrism& h
814814
* ~~~
815815
*/
816816
class TwobodyAngles {
817-
static std::vector<Point> fibonacciSphere(int);
817+
static std::vector<Point> fibonacciSphere(size_t);
818818

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

0 commit comments

Comments
 (0)