Browse Source

Small hack to temporarily fix allocation of unique_code slots.

pull/3/head
Damien 11 years ago
parent
commit
e0b1864337
  1. 2
      py/runtime.c

2
py/runtime.c

@ -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;
}

Loading…
Cancel
Save