Skip to content

Commit

Permalink
fix gcc werror
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahrri committed May 25, 2024
1 parent 256dab1 commit 9d6c3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nmtools/array/view/vstack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ namespace nmtools::index

if constexpr (!meta::is_constant_index_array_v<result_t>) {
auto src_dim = len(src_shape);
auto dst_dim = (src_dim == 1 ? 2 : src_dim);
if constexpr (meta::is_resizable_v<result_t>) {
auto dst_dim = (src_dim == 1 ? 2 : src_dim);
result.resize(dst_dim);
}
if (src_dim == 1) {
Expand Down

0 comments on commit 9d6c3de

Please sign in to comment.