Replace _set_at2 by _get_at for array.
(Break API)
This commit is contained in:
1 parent
26b8c1d0a2
commit
d1f2b62f66
4 files changed
+15
-9
No files matched your search
@@ -47,8 +47,8 @@ static void program_init(program_t p, string_t text) {
|
||||
int left;
|
||||
array_int_pop_back(&left, leftstack);
|
||||
int right = pc;
|
||||
array_int_set_at2 (p->bracket_map, left, right);
|
||||
array_int_set_at2 (p->bracket_map, right, left);
|
||||
*array_int_get_at (p->bracket_map, left) = right;
|
||||
*array_int_get_at (p->bracket_map, right) = left;
|
||||
}
|
||||
|
||||
pc++;
|
||||
|
||||
Reference in new issue
Block a user