Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52de677

Browse files
committed
substitute left right shifts in array lengths
1 parent 40eb341 commit 52de677

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gen/gen_mpy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,8 @@ def try_generate_array_type(type_ast):
25642564
.replace("(", "__")
25652565
.replace(")", "__")
25662566
.replace("/", "_div_")
2567+
.replace("<<", "lsh")
2568+
.replace(">>", "rsh")
25672569
)
25682570
arr_to_c_convertor_name = "mp_arr_to_%s" % array_convertor_suffix
25692571
arr_to_mp_convertor_name = "mp_arr_from_%s" % array_convertor_suffix

0 commit comments

Comments
 (0)