Skip to content

Commit 179d0f7

Browse files
committed
C_CPP: Support stride, offset for lpython decorator
1 parent c308ec4 commit 179d0f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libasr/codegen/asr_to_c_cpp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,8 @@ R"(#include <stdio.h>
927927
s_array_)" + arg_name + R"(->n_dims = 1;
928928
s_array_)" + arg_name + R"(->dims[0].lower_bound = 0;
929929
s_array_)" + arg_name + R"(->dims[0].length = dims[0];
930+
s_array_)" + arg_name + R"(->dims[0].stride = 1;
931+
s_array_)" + arg_name + R"(->offset = 0;
930932
s_array_)" + arg_name + R"(->is_allocated = false;
931933
}
932934
)";

0 commit comments

Comments
 (0)