Skip to content

Commit

Permalink
Oops, wrong loop bounds (I always make mistakes for loops that go
Browse files Browse the repository at this point in the history
backwards...)
  • Loading branch information
BrunoLevy committed Feb 10, 2025
1 parent 941cf82 commit 6e327fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/geogram/basic/geofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ namespace GEO {
);
}
if(expand) {
for(ssize_t i = ssize_t(nb_elements-1); i>0; --i) {
for(ssize_t i = ssize_t(nb_elements-1); i>=0; --i) {
addr[i] = (addr32[i] == NO_INDEX32)
? NO_INDEX : index_t(addr32[i]) ;
}
Expand Down

0 comments on commit 6e327fe

Please sign in to comment.