Skip to content

Commit

Permalink
fix a sign error
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjameswml committed Dec 11, 2024
1 parent 39604b1 commit cf63ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions morph/GridVisual.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace morph {
float grid_bot = cg_extents[2] - (dx[1]/2.0f) + this->centering_offset[1];

// loop through each pixel
for (unsigned int i=0; i < selected_pix_indexes.size(); ++i ) {
for (std::size_t i=0; i < selected_pix_indexes.size(); ++i ) {
unsigned int r = selected_pix_indexes[i] % pix_width;
unsigned int c = selected_pix_indexes[i] / pix_width;
// {xmin, xmax, ymin, ymax}
Expand Down Expand Up @@ -213,7 +213,7 @@ namespace morph {
t_r.search_init();

// Find extents of our selected pixels
for (I i = 0; i < this->selected_pix_indexes.size(); ++i) {
for (std::size_t i = 0; i < this->selected_pix_indexes.size(); ++i) {
I r = this->selected_pix_indexes[i] % pix_width;
I c = this->selected_pix_indexes[i] / pix_width;
float left = grid_left + (r * dx[0]);
Expand Down

0 comments on commit cf63ecb

Please sign in to comment.