Skip to content

Commit

Permalink
Fix clang-tidy warning in RunGen.h
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Oct 11, 2018
1 parent 140b62e commit 704e214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/RunGen.h
Expand Up @@ -893,7 +893,7 @@ class RunGen {
Shape shape = get_shape(arg.buffer_value);
if (shape.size() >= 2) {
pixels_out += shape[0].extent * shape[1].extent;
} else if (shape.size()) {
} else if (!shape.empty()) {
pixels_out += shape[0].extent;
} else {
pixels_out += 1;
Expand Down

0 comments on commit 704e214

Please sign in to comment.