Skip to content

Commit

Permalink
Use size_t as iterator instead of int (#1659)
Browse files Browse the repository at this point in the history
Caught by the sanitizer

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm authored Mar 6, 2024
1 parent 4e37911 commit f2a71f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/exrstdattr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ main (int argc, char** argv)
}
}

for (int i=0; i<attrs.size(); i++)
for (size_t i=0; i<attrs.size(); i++)
delete attrs[i].attr;
}
catch (const exception& e)
Expand Down

0 comments on commit f2a71f7

Please sign in to comment.