Fix slice indexing in example
This commit is contained in:
@@ -306,7 +306,7 @@ gen_expr(Ast_Expr *ast, Ast_Type *type_of_var){
|
||||
if(!(type_of_var && type_of_var == type_pointer_to_char))
|
||||
gen(".str");
|
||||
}
|
||||
else if(is_slice(node->resolved_type)){
|
||||
else if(is_slice(node->index_original_type)){
|
||||
gen(".data");
|
||||
}
|
||||
gen("[");
|
||||
|
||||
Reference in New Issue
Block a user