Branch: Tag:

2013-07-17

2013-07-17 17:50:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed __INIT() prototype detection.

The __INIT() prototype detection in the decode_value() case
was off by one in the previous commit. With this fix all of
the known issues introduced by the __INIT() changes seem to
be fixed.

3930:    } else if (finish == 2) {    /* Called from decode_value(). */    e = low_find_lfun(Pike_compiler->new_program, LFUN___INIT); -  if ((e != -1) && !ID_FROM_INT(Pike_compiler->new_program, e)->func.offset) { +  if ((e != -1) && +  (ID_FROM_INT(Pike_compiler->new_program, e)->func.offset == -1)) {    /* Just a prototype. Make sure not to call it. */    e = -1;    }