mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 07:32:23 -07:00
fix usage of [] operator on pointer values; fix incorrect interpretation of []s as assembly style derefs in chained cases
This commit is contained in:
@@ -574,6 +574,7 @@ E_TYPE_ACCESS_FUNCTION_DEF(default)
|
||||
|
||||
// rjf: ops to compute the final address
|
||||
new_tree = e_irtree_binary_op_u(arena, RDI_EvalOp_Add, offset_tree, base_tree);
|
||||
mode = E_Mode_Offset;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1023,7 +1023,7 @@ e_push_parse_from_string_tokens__prec(Arena *arena, String8 text, E_TokenArray t
|
||||
////////////////////////
|
||||
//- rjf: descent to assembly-style dereference sub-expression [...]
|
||||
//
|
||||
if(!got_new_atom)
|
||||
if(atom == &e_expr_nil && !got_new_atom)
|
||||
{
|
||||
E_Token token = e_token_at_it(it, &tokens);
|
||||
String8 token_string = str8_substr(text, token.range);
|
||||
|
||||
Reference in New Issue
Block a user