--- parser3/src/main/compile_tools.C 2003/03/27 10:04:07 1.54.2.5.2.4 +++ parser3/src/main/compile_tools.C 2003/03/27 10:53:01 1.54.2.5.2.5 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_COMPILE_TOOLS_C="$Date: 2003/03/27 10:04:07 $"; +static const char* IDENT_COMPILE_TOOLS_C="$Date: 2003/03/27 10:53:01 $"; #include "compile_tools.h" #include "pa_string.h" @@ -28,7 +28,7 @@ void change_string_literal_to_double_lit void change_string_literal_value(ArrayOperation& literal_string_array, const String& new_value) { if(literal_string_array[0].code==OP_VALUE) { // extra safety - static_cast(*literal_string_array[1].value).set_string(new_value); + static_cast(literal_string_array[1].value)->set_string(new_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[tail]; + Operation& op=opcodes.unchecked_get_ref(tail); if(op.code==find) { op.code=replace; return;