Fix codegen bugs

This commit is contained in:
Abdelrahman Said
2025-04-16 08:13:31 +01:00
parent cfa8094260
commit 63acdd1336
5 changed files with 9 additions and 9 deletions

View File

@@ -3,14 +3,14 @@
}}
if (index == 0) {{
wapp_{T}_list_push_front(list, node);
wapp_{Tlower}_list_push_front(list, node);
return;
}} else if (index == list->node_count) {{
wapp_{T}_list_push_back(list, node);
wapp_{Tlower}_list_push_back(list, node);
return;
}}
{T}Node *dst_node = wapp_{T}_list_get(list, index);
{T}Node *dst_node = wapp_{Tlower}_list_get(list, index);
if (!dst_node) {{
return;
}}