Explorar o código

* range check for spilltemp.offset in [-128..127], not [0..63] in trgcpu.do_spill_replace for Z80

git-svn-id: branches/z80@44534 -
nickysn %!s(int64=5) %!d(string=hai) anos
pai
achega
8ceee70912
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/z80/rgcpu.pas

+ 1 - 1
compiler/z80/rgcpu.pas

@@ -158,7 +158,7 @@ unit rgcpu;
         b : byte;
         b : byte;
       begin
       begin
         result:=false;
         result:=false;
-        if not(spilltemp.offset in [0..63]) then
+        if not(spilltemp.offset in [-128..127]) then
           exit;
           exit;
 
 
         { Replace 'mov  dst,orgreg' with 'ld  dst,spilltemp'
         { Replace 'mov  dst,orgreg' with 'ld  dst,spilltemp'