--- parser3/src/main/compile_tools.C 2003/03/27 10:53:01 1.54.2.5.2.5 +++ parser3/src/main/compile_tools.C 2003/04/02 09:32:11 1.54.2.5.2.7 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_COMPILE_TOOLS_C="$Date: 2003/03/27 10:53:01 $"; +static const char* IDENT_COMPILE_TOOLS_C="$Date: 2003/04/02 09:32:11 $"; #include "compile_tools.h" #include "pa_string.h" @@ -21,8 +21,8 @@ Value* LA2V(ArrayOperation& literal_stri void change_string_literal_to_double_literal(ArrayOperation& literal_string_array) { if(literal_string_array[0].code==OP_VALUE) { - Value* value=literal_string_array[1].value->as_expr_result(); - literal_string_array.put(1, value); + Value& value=literal_string_array[1].value->as_expr_result(); + literal_string_array.put(1, &value); } } @@ -36,7 +36,7 @@ void changetail_or_append(ArrayOperation OPCODE find, bool with_argument, OPCODE replace, OPCODE notfound) { int tail=opcodes.count()-(with_argument?2:1); if(tail>=0) { - Operation& op=opcodes.unchecked_get_ref(tail); + Operation& op=opcodes.get_ref(tail); if(op.code==find) { op.code=replace; return;