From f8c84dd1fd36d1647cca55943c640964579d13d9 Mon Sep 17 00:00:00 2001 From: pierre Date: Sat, 28 Nov 2020 12:06:36 +0000 Subject: [PATCH] Fix compilation with DEBUG_PPU macro set git-svn-id: trunk@47615 - --- compiler/entfile.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/entfile.pas b/compiler/entfile.pas index b95f91fee4..3f2fcb9b57 100644 --- a/compiler/entfile.pas +++ b/compiler/entfile.pas @@ -1400,7 +1400,7 @@ begin for i:=low(arr) to high(arr) do arr[i]:=reverse_byte(arr[i]); {$ifdef DEBUG_PPU} - for i:=0 to 3 do + for i:=low(arr) to high(arr) do ppu_log_val('byte['+tostr(i)+']=$'+hexstr(arr[i],2)); dec_log_level; {$endif} @@ -1871,7 +1871,7 @@ procedure tentryfile.putset(const arr: array of byte); {$endif} putdata(arr,sizeof(arr)); {$ifdef DEBUG_PPU} - for i:=0 to 31 do + for i:=0 to sizeof(arr)-1 do ppu_log_val('byte['+tostr(i)+']=$'+hexstr(arr[i],2)); dec_log_level; {$endif}