Skip to content

Commit

Permalink
fixed clang-tidy error
Browse files Browse the repository at this point in the history
vector iterator i changed from int to uint16_t
  • Loading branch information
GDBobby committed Sep 27, 2023
1 parent a3dc3b1 commit 6fcaaa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion noiz/include/noiz/noise-processing2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Noise_Processor2 {
/* seize required memory for exponent_array */
//exponent_array = (double*)malloc(octave * sizeof(double));
frequency = 1.0;
for (int i = 0; i < octave; i++) {
for (uint16_t i = 0; i < octave; i++) {
/* compute weight for each frequency */
hbf_exponent_array[i] = std::pow(frequency, -hbf_H);
frequency *= lacunarity;
Expand Down
2 changes: 1 addition & 1 deletion noiz/include/noiz/noise-processing3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Noise_Processor3 {
/* increase frequency */
tempPoint = tempPoint * lacunarity;
/* spectral construction inner loop, where the fractal is built */
for (int i = 1; i < octave; i++) {
for (uint16_t i = 1; i < octave; i++) {
/* prevent divergence */
if (weight > 1.0) {weight = 1.0;}
/* get next higher frequency */
Expand Down

0 comments on commit 6fcaaa1

Please sign in to comment.