Commit e0b18643 authored by Damien's avatar Damien
Browse files

Small hack to temporarily fix allocation of unique_code slots.

parent ccfc9c51
......@@ -619,7 +619,7 @@ int rt_get_unique_code_id(bool is_main_module) {
static void alloc_unique_codes(void) {
if (unique_codes == NULL) {
unique_codes = m_new(py_code_t, next_unique_code_id);
unique_codes = m_new(py_code_t, next_unique_code_id + 10); // XXX hack until we fix the REPL allocation problem
for (int i = 0; i < next_unique_code_id; i++) {
unique_codes[i].kind = PY_CODE_NONE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment