Skip to content

Commit

Permalink
backport: remove pointless static. (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc authored Jul 26, 2024
1 parent b71a6d4 commit f9778f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/data_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::vector<size_t> unravel(size_t flat_index, const std::vector<size_t> dims) {
return indices;
}

static size_t flat_size(const std::vector<size_t>& dims) {
inline size_t flat_size(const std::vector<size_t>& dims) {
size_t n = 1;
for (auto d: dims) {
n *= d;
Expand Down

0 comments on commit f9778f1

Please sign in to comment.