Skip to content

Commit

Permalink
Fix a signed comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
noelchalmers committed Oct 31, 2022
1 parent 13d3d4a commit f63ef37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/occa/dtype/dtype.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ namespace occa {
);
dtype_t& type = entry.first->second;

for (int i = 0; i < fieldNames.size(); ++i) {
for (size_t i = 0; i < fieldNames.size(); ++i) {
type.addField(fieldNames[i], fieldTypes[i]);
}

Expand Down

0 comments on commit f63ef37

Please sign in to comment.