Branch: Tag:

2014-11-03

2014-11-03 14:35:18 by Arne Goedeke <el@laramies.com>

F_APPEND_MAPPING: overwrite existing entries.

The new append mapping opcode did not overwrite existing entries in the
destructive case (when the mapping had only "1" reference).

1877:    int i;    /* fprintf( stderr, "map_refs==2\n" ); */    for( i=0; i<args; i+=2 ) -  low_mapping_insert( m, Pike_sp-(i+2), Pike_sp-(i+1), 0 ); +  low_mapping_insert( m, Pike_sp-(i+2), Pike_sp-(i+1), 2 );    stack_pop_n_elems_keep_top(2+args);    return;    }