Changeset 80 for trunk/UBFTarget.pas


Ignore:
Timestamp:
Jan 1, 2017, 11:34:52 AM (8 years ago)
Author:
chronos
Message:
  • Fixed: Exception if optimization for empty code was used.
  • Fixed: Correctly show used memory cells.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UBFTarget.pas

    r78 r80  
    110110  // Replace old program by new program
    111111  SetLength(FProgram, Length(NewProgram));
    112   Move(NewProgram[0], FProgram[0], SizeOf(TMachineOperation) * Length(NewProgram));
     112  Move(Pointer(NewProgram)^, Pointer(FProgram)^, SizeOf(TMachineOperation) * Length(NewProgram));
    113113end;
    114114
     
    251251  // Replace old program by new program
    252252  SetLength(FProgram, Length(NewProgram));
    253   Move(NewProgram[0], FProgram[0], SizeOf(TMachineOperation) * Length(NewProgram));
     253  Move(Pointer(NewProgram)^, Pointer(FProgram)^, SizeOf(TMachineOperation) * Length(NewProgram));
    254254end;
    255255
Note: See TracChangeset for help on using the changeset viewer.