Branch: Tag:

2022-09-22

2022-09-22 09:35:39 by Arne Goedeke <el@laramies.com>

Debug.get_program_layout: behave as documented

2479:    struct svalue key, value;       SET_SVAL(key, PIKE_T_INT, NUMBER_NUMBER, integer, 0); -  /* FIXME: this could overflow.. typewise, at least. */ +     SET_SVAL(value, PIKE_T_INT, NUMBER_NUMBER, integer, -  PTR_TO_INT(p->program + p->num_program)); +  p->num_program * sizeof(PIKE_OPCODE_T));    mapping_insert(m, &key, &value);    }    }